lbell / pretty-google-calendar

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

Missing Timezone Arg #45

Open lbell opened 5 months ago

lbell commented 5 months ago

Looks like we intitially had an override, but have since removed it. This is creating unexpected behavior: https://github.com/lbell/pretty-google-calendar/blob/82aba4020e296ee3e7c0e6701e96a851905bae35/public/js/pgcal.js#L87

By default, FullCalendar uses 'local' which should result in the time being in the end user's computer's timezone.

Remove this argument, and let users override with: fc_args='{"timeZone":"###"}'

ibasbl commented 5 months ago

If the timezone could be defined without issue, would it be possible to have a timezone selection menu for the front user like a drop list?

lbell commented 5 months ago

@ibasbl While that is possible with FullCalendar, it's not likely something we'd implement in this plugin without someone financing that.