Support » Plugin: Google Calendar List View » date is always 1970-01-01

  • Google calendar might have changed the way the format dateTime.

    You expect Y-m-d H:i:s, but google returns Y-m-dTH:i:s and therefore get_date_from_gmt returns 1970-01-01.

    I made a fix where i use something like this to get the correct value:

      $start_date = new DateTime($dateTime);
      $gmt_start_date = $date->format ('Y-m-d H:i:s');

    Can you fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.