From a2a813d7c2d8b0db0a5e844ff2743ef28a04f2f3 Mon Sep 17 00:00:00 2001 From: Tragen Date: Fri, 26 Oct 2018 19:43:37 +0200 Subject: [PATCH] DTSTAMP must be specified in UTC (#432) --- lib/Component/VEvent.php | 2 +- lib/Component/VJournal.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Component/VEvent.php b/lib/Component/VEvent.php index 49a6bd851..09f37033c 100644 --- a/lib/Component/VEvent.php +++ b/lib/Component/VEvent.php @@ -83,7 +83,7 @@ protected function getDefaults() { return [ 'UID' => 'sabre-vobject-'.VObject\UUIDUtil::getUUID(), - 'DTSTAMP' => date('Ymd\\THis\\Z'), + 'DTSTAMP' => gmdate('Ymd\\THis\\Z'), ]; } diff --git a/lib/Component/VJournal.php b/lib/Component/VJournal.php index 2783fe10c..9bd336776 100644 --- a/lib/Component/VJournal.php +++ b/lib/Component/VJournal.php @@ -98,7 +98,7 @@ protected function getDefaults() { return [ 'UID' => 'sabre-vobject-'.VObject\UUIDUtil::getUUID(), - 'DTSTAMP' => date('Ymd\\THis\\Z'), + 'DTSTAMP' => gmdate('Ymd\\THis\\Z'), ]; } }