Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recurrence rules library with timezone support #12

Open
vladnicula opened this issue Dec 23, 2016 · 2 comments
Open

recurrence rules library with timezone support #12

vladnicula opened this issue Dec 23, 2016 · 2 comments

Comments

@vladnicula
Copy link
Member

Let's say I have a recurrence rule for "Every first Monday of the month at 23:30" starting at startTime: x.

First Monday of December in UK starts at a different time-stamp than First Monday of December in China.

I'm implementing an application that would be able to switch between any given timezone, regardless of the browsers local timezone.So I could be in Romania, and ask the application to display all dates in relation to China's timezone.

Has anyone played with a library that can answer a question like:

"Give me all first Mondays between X and Y time-stamps, IN CHINA"?

Or maybe I'm not thinking about this right.

@alexnm
Copy link

alexnm commented Dec 23, 2016

Have you tried playing with moment? http://momentjs.com/

@vladnicula
Copy link
Member Author

vladnicula commented Dec 23, 2016

moment, moment-timezone and rrule. Now trying moment-recur.

I am using moment-timezone for dealing with timezone formatting and keeping 'floating' dates (like alarm clock which need to be timezone independent) in check.

Querying for the first Monday when the recurrence rule starts in a UTC time that appears to be Tuesday is a bit trickier and not supported natively by moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants