revert
This commit is contained in:
parent
460be13087
commit
e4e4d57731
|
@ -242,19 +242,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* [3] Convert to UTC (+0)
|
/* [3] Convert to GMT (UTC+0)
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
/* (1) Get local timezone */
|
/* (1) Get GMT (UTC+0) timestamp */
|
||||||
$tz = 'Europe/Paris';
|
$ts = strtotime("${day} $hour:$min:00");
|
||||||
|
|
||||||
/* (2) Get timezone offset */
|
/* (2) Return GMT date */
|
||||||
$tz_offset = get_timezone_offset($tz);
|
return gmdate("Ymd\THis", $ts);
|
||||||
|
|
||||||
/* (3) Get GMT (UTC+0) timestamp */
|
|
||||||
$ts = strtotime("${day} $hour:$min:00") + $tz_offset;
|
|
||||||
|
|
||||||
/* (4) Return GMT date */
|
|
||||||
return date("Ymd\THis", $ts);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue