better explanation

This commit is contained in:
Hannes Mannerheim 2015-10-10 00:20:32 +02:00
parent b24191f9f9
commit a9f879c2ba

View File

@ -157,7 +157,7 @@ class EventPlugin extends MicroAppPlugin
throw new Exception(_m('No end date for event.'));
}
// dates are saved as UTC in database
// convert RFC3339 dates delivered in Activity Stream to MySQL DATETIME date format
$start_time = new DateTime($dtstart->item(0)->nodeValue);
$start_time->setTimezone(new DateTimeZone('UTC'));
$start_time = $start_time->format('Y-m-d H:i:s');