pikim / grav-plugin-events

This plugin provides Calendar Events for Grav CMS
MIT License
13 stars 11 forks source link

Convert GOOGLE .ics dates GMT to local/default time zone? #32

Open boatful opened 1 year ago

boatful commented 1 year ago

A useful enhancement to the plug-in would be converting individual event times from UTC/GMT (the GOOGLE .ics default) to whatever time zone the Grav site owner config specifies as the default (in our case “America/New York”). Otherwise it leaves me needing to modify several twig templates that come with this plugin, applying the |date(…,’America/New York’) filter as shown here: https://stackoverflow.com/questions/5497716/how-do-i-use-timezone-in-twig-date-filter

pikim commented 1 year ago

@boatful What would you expect: should it use the setting from the generic Grav config section or a deicated setting in the plugin itself?