myuhe / org-gcal.el

Org sync with Google Calendar
452 stars 113 forks source link

One of my GCal calendars is in UTC time, comes down as UTC but need it local #120

Closed christoofar closed 3 years ago

christoofar commented 5 years ago

Have a small issue with my work calendar which I import from Office365 into Google Calendar (so I can see my Outlook calendar events in emacs, I expose it as a Google Calendar)...

The timezone is 00:00UTC. So when it's written to disk in .org mode it is not translated to local time.

I'm in USA Eastern Standard Time as of right now (GMT-5).

Here's what it looks like in Google settings (where I've imported the calendar from Office 365) image

Here's an appointment which is in my local time zone (visible on Mac Calendar) image

Ok, so far so good.. this is the correct time of that appointment. Now here's what it looks like in org-gcal after syncing:

image

This is wrong... this is what the appointment is in UTC time (as if I were in the UTC time zone), not converted to local. IOW this is a morning appointment but because there was no conversion it's showing up at the end of my work day.

It wrote this to the .org file not knowing that the .ICS is set to UTC 00:00.

And of course it's wrong in agenda as well:

image

Any ideas on a fix?

christoofar commented 5 years ago

This is an absolute complete hack but I went ahead and added a header to the call to fetch the calendar. Google accepts time zone names "America/New_York" for instance. This allowed me to get around the problem for now.

image

bobberb commented 5 years ago

The community left this repo for

https://github.com/kidd/org-gcal.el/

And that repo is what MELPA currently references

telotortium commented 4 years ago

Hi everyone! This repository is obsolete - the actively developed fork is now https://github.com/kidd/org-gcal.el, which is also the "org-gcal.el" on MELPA (see #115). I'm one of the maintainers of https://github.com/kidd/org-gcal.el. I can't directly close issues or PRs on this repo, but please download https://github.com/kidd/org-gcal.el and see if your issue or PR is still applicable. If so, open an issue or PR on https://github.com/kidd/org-gcal.el. In any case, you should close your issue or PR in this repo.