Search code examples
google-calendar-api

List of acceptable Google Calendar api time zones


I'm working with Google's Calendar API, and I'm running into a bit of an issue. When I set the dateTime of an event I insert, I'm required to set the hour offset, but because o DST, it's off an hour.

There is a property I can set for the calendar to set the timezone by name, which I would think would fix my problem, because Google would figure out the correct hour offset.

However I do not know all of them, nor can I find a place that lists them. For example America/Los_Angeles or Europe/Zurich. Does anybody know where I can find them?


Solution

  • I think I have found the list that I was looking for on this website.

    Here is what I ended up needing:

    • America/New_York
    • America/Chicago
    • America/Denver
    • America/Los_Angeles

    Specifically it was on this page.