Skip to content

Commit 2d6f16b

Browse files
committed
Use UTC time when creating package.xml
1 parent eeeaeba commit 2d6f16b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/prep-release.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ function usage() {
190190
verify_changelog($changelog);
191191

192192

193-
$currtime = $_SERVER["REQUEST_TIME"];
194-
$DATE = date("Y-m-d", $currtime);
195-
$TIME = date("H:i:s", $currtime);
193+
$currtime = new DateTime('now', new DateTimeZone('UTC'));
194+
$DATE = $currtime->format('Y-m-d');
195+
$TIME = $currtime->format('H:i:s');
196196

197197
$fullnotes = file($changelog, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
198198
$NOTES = array();

0 commit comments

Comments
 (0)