From e4e4d57731403a6028398d0e3d241b7f7d7286b7 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 12 Sep 2017 22:15:51 +0200 Subject: [PATCH] revert --- build/service/CalendarExtractor.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/build/service/CalendarExtractor.php b/build/service/CalendarExtractor.php index 751d8a6..9d69604 100644 --- a/build/service/CalendarExtractor.php +++ b/build/service/CalendarExtractor.php @@ -242,19 +242,13 @@ } - /* [3] Convert to UTC (+0) + /* [3] Convert to GMT (UTC+0) =========================================================*/ - /* (1) Get local timezone */ - $tz = 'Europe/Paris'; + /* (1) Get GMT (UTC+0) timestamp */ + $ts = strtotime("${day} $hour:$min:00"); - /* (2) Get timezone offset */ - $tz_offset = get_timezone_offset($tz); - - /* (3) Get GMT (UTC+0) timestamp */ - $ts = strtotime("${day} $hour:$min:00") + $tz_offset; - - /* (4) Return GMT date */ - return date("Ymd\THis", $ts); + /* (2) Return GMT date */ + return gmdate("Ymd\THis", $ts); }