This seems like it has to be a configuration issue on my part but if so I can't find it.

I've loaded both the Google sunrise calendar for New York, and the moon phases calendar. Both show times 5 hours later than they should be. My site is configured to use America/New_York as is my account. Since it is now standard time my zone is UTC-5 so the times I'm seeing are UTC.

I'm guessing that Google is seeing those times and Agenda and Google aren't sharing TZ information.

Can this be fixed via configuration?

Roland

Comments

rbroberts created an issue.

rbroberts’s picture

Interesting. I'm going to say this is a Google issue. Or maybe the library isn't passing the timezone correctly. I see
&timeZone=America%2FNew_York
in the GET request, but what comes back comes like this

{
 "kind": "calendar#events",
 "etag": "\"p324e1bvntamte0g\"",
 "summary": "Phases of the Moon",
 "updated": "2017-11-07T18:33:19.000Z",
 "timeZone": "UTC",
 "accessRole": "reader",
 "defaultReminders": [],
 "items": [
  {
   "kind": "calendar#event",
   "etag": "\"2453932800000000\"",
   "id": "moonphase+1509772980000",
   "status": "confirmed",
   "htmlLink": "https://www.google.com/calendar/event?eid=bW9vbnBoYXNlKzE1MDk3NzI5ODAwMDAgaHQzamxmYWFjNWxmZDYyNjN1bGZoNHRxbDhAZw&ctz=America/New_York",
   "created": "2008-11-18T00:00:00.000Z",
   "updated": "2008-11-18T00:00:00.000Z",
   "summary": "Full moon 5:23am",
   "creator": {
    "email": "ht3jlfaac5lfd6263ulfh4tql8@group.calendar.google.com",
    "displayName": "Phases of the Moon",
    "self": true
   },
   "organizer": {
    "email": "ht3jlfaac5lfd6263ulfh4tql8@group.calendar.google.com",
    "displayName": "Phases of the Moon",
    "self": true
   },
   "start": {
    "date": "2017-11-04"
   },
   "end": {
    "date": "2017-11-05"
   },
   "visibility": "public",
   "iCalUID": "moonphase+1509772980000@google.com",
   "sequence": 0,
   "gadget": {
    "title": "Full moon 5:23am",
    "iconLink": "https://ssl.gstatic.com/calendar/images/moon/full-moon.gif"
   }
  },
...

So it really looks to me like that TZ in the request is being ignored. I'll poke around a bit, but now I'm wondering if any of the times coming back into my agenda are really "correct" or if it's just because they're in the same TZ as my request already.

rbroberts’s picture

I confess this is puzzling. If I go to Google's test site
https://developers.google.com/google-apps/calendar/v3/reference/events/list
and put in the same parameters, it shows me the correct data and timezone. But...it doesn't work when I put together the URL myself, or the way Agenda is doing it. That's confusing....

rbroberts’s picture

No idea what Google is doing for this. But the Google test site actually just passes the TZ through. If I put some other TZ, like America/Los_Angeles, it's not actually converting it, it's just setting the &ctz= parameter on the htmlLink.