jkbrzt / rrule

JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
https://jkbrzt.github.io/rrule
Other
3.3k stars 513 forks source link

UTC times are not "rezoned" #474

Open marcoancona opened 3 years ago

marcoancona commented 3 years ago

Reporting an issue

If "UTC" is used as tzid the resulting dates seem to be incorrect (where incorrect, meaning that they do not follow the convention described in the documentation according to which the output times should be interpreted in the system timezone).

~Please check this example: https://codesandbox.io/s/jovial-glade-9vzjr?file=/src/index.ts~ Sorry, wrong link. Here is the correct one: https://codesandbox.io/s/interesting-keldysh-1d8ee

Possibly related to https://github.com/jakubroztocil/rrule/issues/358