From ee38cd5c93c0d040b1f4df41c596d4ae44343fe7 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 12 Sep 2017 23:18:13 +0200 Subject: [PATCH] revert gmt manually --- build/service/CalendarExtractor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/service/CalendarExtractor.php b/build/service/CalendarExtractor.php index 830f742..41eeed1 100644 --- a/build/service/CalendarExtractor.php +++ b/build/service/CalendarExtractor.php @@ -248,10 +248,10 @@ $tz_offset = +2; /* (2) Get GMT (UTC+0) timestamp */ - $ts = strtotime("${day} $hour:$min:00"); + $ts = strtotime("${day} $hour:$min:00") - (3600*$tz_offset); /* (3) Return GMT date */ - return gmdate("Ymd\THis\Z", $ts); + return date("Ymd\THis\Z", $ts); }