We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeeaeba commit 2d6f16bCopy full SHA for 2d6f16b
bin/prep-release.php
@@ -190,9 +190,9 @@ function usage() {
190
verify_changelog($changelog);
191
192
193
-$currtime = $_SERVER["REQUEST_TIME"];
194
-$DATE = date("Y-m-d", $currtime);
195
-$TIME = date("H:i:s", $currtime);
+$currtime = new DateTime('now', new DateTimeZone('UTC'));
+$DATE = $currtime->format('Y-m-d');
+$TIME = $currtime->format('H:i:s');
196
197
$fullnotes = file($changelog, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
198
$NOTES = array();
0 commit comments