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.29k stars 514 forks source link

apply timezone offset to test dtstart UTC times #502

Open tmshkr opened 2 years ago

tmshkr commented 2 years ago

Issue: https://github.com/jakubroztocil/rrule/issues/501

You can verify with:

new Date(Date.UTC(1997, 8, 2, 13, 0, 0)).toLocaleString('en-US', { timeZone: 'America/New_York' })