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

Issue with BYDAY recurrence and start time after midnight UTC #164

Open
maxmcclorey opened this issue Apr 15, 2020 · 2 comments
Open

Issue with BYDAY recurrence and start time after midnight UTC #164

maxmcclorey opened this issue Apr 15, 2020 · 2 comments

Comments

@maxmcclorey
Copy link

Suppose I have an event starting on Thursday 4/16 at 9p (2100h) Pacific time and recurring every Tuesday and Thursday. Pacific time is UTC-0700, so the event has a UTC start date of 0400h on 4/17--4am the following day.

When my recurrences are generated they take the start time of the original event, but not the date. So my recurrences are generated on Tuesdays and Thursdays at 0400h, which translates to 9p PT on Mondays and Wednesdays.

I've tried setting a timezone in the DTSTART, and am able to do that, but the issue seems to be that the BYDAY values don't take into account when the DTSTART falls after midnight UTC

@havocy28
Copy link

I am also having this problem. Have you found a solution?

@maxmcclorey
Copy link
Author

It turned out to be an issue with mixing timezone-aware and timezone-naive datetimes. I forget exactly what the solution was (and I'm no longer with the company where I had this issue, so I can't check), but I think the solution ended up involving using a timezone-aware datetime to seed the recurrences?

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

No branches or pull requests

3 participants