lbell / pretty-google-calendar

Simple WordPress plugin to embed Google Calendars in way that doesn't suck.
12 stars 7 forks source link

Inconsistent Timezone Parsing #43

Open lbell opened 6 months ago

lbell commented 6 months ago

The "start" and "end" times surfaced in Tippy use toLocaleTimeString() which defaults to browser TZ. The rest of PGCal uses calendar TZ.

lbell commented 3 months ago

See: https://wordpress.org/support/topic/tippy-wrong-timezone/

Carter12s commented 2 months ago

Also running into what I think is this issue.

Trying to display a calendar originally from Meetup.com on my site.

Importing the Meetup calendar into gcal the TZ is UTC an I can't edit that on the gcal side.

When I then display the calendar with this plugin it shows the times as UTC instead of local.

Would be happy to lightly bribe for a fix.

lbell commented 2 months ago

@Carter12s To clarify, are you talking about in the calendar itself showing UTC, or in the popup?

For the calendar, check here: https://fullcalendar.io/docs/timeZone. You might try specifying a timeZone argument to see what works. E.g. fc_args='{"timeZone":"America/New_York"}

Let me know what you find, and I'll see what needs tweaking in the popup to get things right.