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

Allow luxon alternatives to handle timezones #506

Closed boris-graeff closed 2 years ago

boris-graeff commented 2 years ago

Hi, we use date-fns on our project, so we would like to avoid having to load luxon in addition to manage the timezones. What do you think about the possibility to define a static customRezonedDate method that allows to override the rezonedDate method.

It could even be an opportunity to remove the dependency to luxon since this is the only place where it is used.

davidgoli commented 2 years ago

Hi, thanks for contributing! I think this will soon no longer be necessary: https://github.com/jakubroztocil/rrule/pull/508

boris-graeff commented 2 years ago

Amazing news ! :)