obsidian-community / obsidian-full-calendar

Keep events and manage your calendar alongside all your other notes in your Obsidian Vault.
https://obsidian-community.github.io/obsidian-full-calendar/
MIT License
810 stars 111 forks source link

Imported ICS calendar has offset times for events #580

Open GiovanniKarra opened 2 months ago

GiovanniKarra commented 2 months ago

Please check that this issue hasn't been reported before.

Expected Behavior

Importing a calendar should place the events at the correct time

Current behaviour

The events' times are 2h backwards. For example an event from 8:30 to 10:30 is marked as 6:30 to 8:30

JavaScript console output

No response

Steps to reproduce

import a calendar with this link: https://monhoraire.uclouvain.be/calendar/schedule?link=mHfMZce0w6yJLRPt3OfzG9mxE-bywm7ejI_4417wCA4&choice=0

Calendar information

it's my university courses

Which Operating Systems are you using?

Obsidian Version

v1.6.7

Full Calendar Plugin Version

v0.10.7

Checks

Possible solution

Probably something to do with my system's time zone, but the "current time" red line works correctly and the imported events are at the correct times on Gnome Calendar

Comments

No response

timkicker commented 1 month ago

Same thing occuring on my system, same OS, same plugin & obsidian version. ICS-Link is working inside other applications (Outlook etc.)...

rvzaytsev commented 1 month ago

I have a similar issue. Some events are also a day off. It is not comprehensible what is going on, some events are displayed correctly, some are displayed on the wrong day, but correct time, others are just completely random (both day and time). Using on ubuntu.

tpullano commented 1 month ago

Same here. Mine seem to be 4 hours ahead on both google calendars I imported.

Iss-in commented 2 weeks ago

same issue here as well, events in obsidian widget are behind by a few hours

qipaifeiying commented 2 weeks ago

I have a similar issue.

danielithomas commented 1 week ago

I think I am experiencing a similar issue. I am getting a read-only version of a Google Calendar (via private link). From what I can see, the ICS calendar provided by Google is providing date times in UTC. However, there is no conversion of the UTC time to my locale. It is especially prominent for me because I have a UTC+10 offset so a lot of my morning appointments are showing up late at night the day before.

I think that the solution would be to check if a date is in UTC or another time zone, then check the local device's time zone. If there is a difference, then run a conversion to the appropriate date time before presenting it.

(update) - There's an outstanding (and a bit stale) PR that relates to this here: https://github.com/obsidian-community/obsidian-full-calendar/pull/540 - Hopefully it can be picked up again, or a similar one worked on.