Use gmstrftime() instead of strftime() for testing

I can't replicate any bugs that may affect test_strftime(), so this might not fix anything.
This commit is contained in:
ruan 2018-03-20 14:51:05 +02:00
parent 2349cda4e1
commit 3435a68fff
No known key found for this signature in database
GPG Key ID: 0D2EC1C52E469C0B

View File

@ -235,7 +235,7 @@ final class Settings {
date_default_timezone_set("UTC"); // temporarily set UTC timezone for testing purposes
$fail = false;
$test = strftime($this->date_format, 0);
$test = gmstrftime($this->date_format, 0);
if ($test == false) {
ob_start();
var_dump($test);
@ -244,7 +244,7 @@ final class Settings {
$fail = true;
}
$test = strftime("%Y-%m-%d %H:%M", 0);
$test = gmstrftime("%Y-%m-%d %H:%M", 0);
if ($test !== "1970-01-01 00:00") {
ob_start();
var_dump($test);