Commit 4ed147a
committed
fix(webapp): derive date tooltip offset from the displayed timezone
The date/time tooltip's "Local" row formatted its time in the viewer's configured timezone but computed the "(UTC +n)" label from the browser's own offset at the current moment. When those differed (a viewer whose machine is UTC but whose timezone preference is elsewhere), the label contradicted the time shown, e.g. "Local (UTC +0)" next to a value three hours ahead of UTC. Using the current moment also made the label wrong for dates in the opposite DST phase.
Compute the offset from the same date and timezone used to render the row, so the label always matches the displayed time and stays correct across DST boundaries.1 parent d720690 commit 4ed147a
3 files changed
Lines changed: 78 additions & 14 deletions
File tree
- .server-changes
- apps/webapp
- app/components/primitives
- test/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
181 | 206 | | |
182 | 207 | | |
183 | 208 | | |
| |||
445 | 470 | | |
446 | 471 | | |
447 | 472 | | |
| 473 | + | |
448 | 474 | | |
449 | 475 | | |
450 | 476 | | |
451 | 477 | | |
452 | 478 | | |
453 | 479 | | |
454 | 480 | | |
| 481 | + | |
455 | 482 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | 483 | | |
469 | 484 | | |
470 | 485 | | |
471 | 486 | | |
472 | 487 | | |
473 | | - | |
| 488 | + | |
474 | 489 | | |
475 | 490 | | |
476 | 491 | | |
| |||
515 | 530 | | |
516 | 531 | | |
517 | 532 | | |
| 533 | + | |
518 | 534 | | |
519 | 535 | | |
520 | 536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
0 commit comments