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

Google Calendar Repeating/Recurring Events are Offset by a Day #443

Open
Scriptception opened this issue Apr 29, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@Scriptception
Copy link

Scriptception commented Apr 29, 2024

Describe the bug
Repeating/Recurring events in Google Calendar are offset by one day (Obsidian is showing them 1 day ahead of google calendar).

To Reproduce
Steps to reproduce the behavior:

  1. Create a repeating event in google calendar, i.e. Event named "TEST" that repeats weekly on Monday
  2. Sync via Day Planner plugin in Obsidian
  3. Note the offset between the event in Obsidian, and the event in Google calendar. The duration is correct, but the day is off.

Expected behavior
Expected 1:1 start and end date timestamps.

Screenshots
Screenshot 2024-04-29 105625

Additional context

  • Calendar and OS set to same timezone (AEST)
  • Only happens with repeating/recurring events.
@Scriptception Scriptception added the bug Something isn't working label Apr 29, 2024
@Scriptception
Copy link
Author

I suspect that the issue is related to timezones, as recurring events that occur after a certain time work as expected. This is likely because the time calculations for these events remain within the same day, avoiding any timezone-related discrepancies. In other words, the time difference subtractions work correctly when the events occur on the same day, but there might be an issue when crossing over to a new day or timezone boundary.

I just can't find where in the code the issue lies.

image

@ivan-lednev
Copy link
Owner

Hello, @Scriptception, yeah, timezones are a huge pain. I use a library for this, but it still requires some tinkering to get it right.

@Scriptception
Copy link
Author

@ivan-lednev Any pointers as to where I might look in the code to attempt to fix this? I'm happy to attempt to fix myself and make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants