revert gmt manually

This commit is contained in:
xdrm-brackets 2017-09-12 23:18:13 +02:00
parent 8e8bcaecdd
commit ee38cd5c93
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}