Making WordPress.org


Ignore:
Timestamp:
03/28/2014 05:24:34 PM (11 years ago)
Author:
iandunn
Message:

WordCamp Calendar: Specify a timestamp for events.

This is a temporary workaround for a bug in Google Calendar. See https://productforums.google.com/forum/#!category-topic/calendar/report-an-issue/importing-and-exporting/google-chrome/UQ6P1Im8eY8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-api/classes/ics.php

    r480 r481  
    7979            $end = date( 'Ymd', $end );
    8080
     81            /*
     82             * Specifying the start time as 000000 is a workaround for a bug in Google Calendar
     83             * @see https://productforums.google.com/forum/#!category-topic/calendar/report-an-issue/importing-and-exporting/google-chrome/UQ6P1Im8eY8
     84             */
    8185            $ical .= "BEGIN:VEVENT" . self::CLRF;
    8286            $ical .= "UID:$uid" . self::CLRF;
    83             $ical .= "DTSTAMP;VALUE=DATE:$start" . self::CLRF;
     87            $ical .= "DTSTAMP:$start" . 'T000000Z' . self::CLRF;
    8488            $ical .= "DTSTART;VALUE=DATE:$start" . self::CLRF;
    8589            $ical .= "DTEND;VALUE=DATE:$end" . self::CLRF;
Note: See TracChangeset for help on using the changeset viewer.