From: Hannes Mannerheim Date: Fri, 9 Oct 2015 22:20:32 +0000 (+0200) Subject: better explanation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a9f879c2bab0171f8fdc395cdcd4f7f36414c781;p=quix0rs-gnu-social.git better explanation --- diff --git a/plugins/Event/EventPlugin.php b/plugins/Event/EventPlugin.php index 1cd574086a..7f2712b148 100644 --- a/plugins/Event/EventPlugin.php +++ b/plugins/Event/EventPlugin.php @@ -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');