Commit 3af41aa
committed
fix(my-space): make OrdinalLongDate timezone-stable (#3207)
Addresses revu-bot review on #3280: `date.getDate()` and
`toLocaleDateString` (no `timeZone` option) resolve in the runtime's
local timezone, so a date stored at midnight UTC rendered on a UTC−N
host could shift to the previous day — e.g. `2026-03-01T00:00:00Z`
rendered as "28ᵉ février" instead of "1ᵉʳ mars".
Switched to `getUTCDate()` + `Intl.DateTimeFormat("fr-FR", { …, timeZone: "UTC" })`
so the displayed day is always derived from the stored UTC date.1 parent 193e0c9 commit 3af41aa
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
| 426 | + | |
426 | 427 | | |
427 | 428 | | |
428 | 429 | | |
| |||
0 commit comments