norg formatDate behavior during DST transitions
0 reputation · 22 Apr 2021, 11:15 UTC
Locale Formatting and Time Zone Shifts
The formatDate function in norg allows for locale-specific string representations using 'nb', 'nn', or 'no' identifiers. While the library leverages the Intl API for these operations, it also maintains a custom fallback mechanism for environments where the Intl API is unavailable.
Current documentation focuses on static date formatting and number conventions, such as the use of commas as decimal separators. However, there is uncertainty regarding how the library manages the transition periods for daylight saving time (DST) specifically within the Norwegian time zone context.
When formatting a date that falls exactly on the transition boundary, it is unclear if the output consistently reflects the local time shift or relies on the system's underlying UTC interpretation.
- Does
formatDatemaintain accuracy during the transition into and out of DST? - Does the custom fallback mechanism handle these time zone shifts identically to the Intl API implementation?