chrono icon indicating copy to clipboard operation
chrono copied to clipboard

CET is not a variable timezone and should be defined as a UTC offset

Open olivr70 opened this issue 1 year ago • 1 comments

In timezone.ts, CET is defined as mixed timezone, with daylight saving time, like PT (Pacific Time) or some others.

This is not the case. CET is the standard time in Europe, used during the winter. It should just be defined

   CET: 60,

This introduces confusion and unexpected results when using date/time with explicit mention of CET.

This can be verified for example here.

Daylight saving times are extremly complex, and should probably be handled only with IANA Timezones (see (like Europe/Paris). They are supported by the Intl library and by the dayjs module. To get a glimpse of this complexity, one can check How to Read the tz Database Source Files

olivr70 avatar Aug 14 '24 07:08 olivr70

Note: This is related to #552 (and #532).

wanasit avatar Jan 25 '25 02:01 wanasit