sawhney17 / logseq-calendars-plugin

MIT License
127 stars 17 forks source link

Using a calendar from a different time zone #7

Open torstenkoepke opened 2 years ago

torstenkoepke commented 2 years ago

This works great for Google calendar, and also drags in entries from Office 365 account, but the 365 account (i.e. the company) is based in the UK and therefore using GMT time zone instead of my local Germany time zone, which is GMT+1.

Example: Original from the calender in GMT would be 8:30 - 9:30 Morning meeting, whilst the correct one would be 9:30 - 10:30 Morning meeting.

Can you please give a hint how to deal with that?

Thanks

sawhney17 commented 2 years ago

I’ll take a look at this. Outlook has quite a unique ical structure so I’ll have to look a bit deeper at that. Can you share a blank graph based in US with a few test events? On 9 Feb 2022, 12:36 PM +0400, torstenkoepke @.***>, wrote:

This works great for Google calendar, and also drags in entries from Office 365 account, but the 365 account (i.e. the company) is based in the UK and therefore using GMT time zone instead of my local Germany time zone, which is GMT+1. Example: Original from the calender in GMT would be 8:30 - 9:30 Morning meeting, whilst the correct one would be 9:30 - 10:30 Morning meeting. Can you please give a hint how to deal with that? Thanks — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

riclib commented 2 years ago

same happens to me even with events booked from a different timezone.

riclib commented 2 years ago

Per example:

CleanShot 2022-04-26 at 08 53 41@2x

for this calendar:

CleanShot 2022-04-26 at 08 54 51@2x

Sent you the ics as dm in discord.

stmh commented 1 year ago

I do have the same for events in my google calendar

dazinator commented 9 months ago

I guess this is the same issue, the clocks changed recently in the UK. I have a calendar entry on my office 365 calendar for 10:00 - 11:00 am, when imported it shows as 11:00 - 12:00. I believe the latter is UTC time, where as it would make more sense to show the calendar event in my timezone.

I think what is missing is for the user to configure in the settings what their timezone is e.g "GMT" and then when the iCal entries are rendered, the time can be converted from whatever timezone it is in in the iCal source data - to UTC (if it isn't already), and then from UTC to the users timezone setting if specified?

If I hopped on a plane with logseq, to a different timezone tomorrow, my iCal entry wouldn't change, yet may want to see the time of the meeting displayed in my new local timezone - so being able to go to a setting and adjust what that local timezone is would be handy.

Failing that I guess we could append UTC to the times displayed so it was always clear it was rendering the UTC datetime, but then it's less convenient as I have to do a mental conversion to local time.