ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Google Calendar Event Reminder and UTC/GMT Adjustment

August 12, 2010 10:19pm

Subscribe [2]
  • #1 / Aug 12, 2010 10:19pm

    eguystephens

    90 posts

    I have a calendar on my site and someone recommended adding a button to events to allow them to be added to your Google Calendar- good idea and easy to do.  So I added the code based on the Google documentation.

    Here is the Google example:

    http://www.google.com/intl/en/googlecalendar/event_publisher_guide_detail.html

    I altered this to use my calendar data - here is the date formatting I am using: entry_date format=”%Y%m%dT%H%i%s”

    All works fine except my events are 4 hours off - which is because Google is expecting UTC/GMT.  So how can I convert my ExpressionEngine field (entry_date) to GMT?  Seems like this should be easy but I don’t see anything in the docs.

    Thanks!

    Guy

  • #2 / Aug 24, 2010 5:09pm

    Robin Sowell

    13255 posts

    Try {gmt_entry_date format="whatever"}.  That should do the trick.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases