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:52:26 +02:00
parent 3435a68fff
commit dec15c1ca5
No known key found for this signature in database
GPG Key ID: 0D2EC1C52E469C0B

View File

@ -240,7 +240,7 @@ final class Settings {
ob_start();
var_dump($test);
$testdump = ob_get_clean();
echo("Error: date_format test failed. strftime(\"" . $this->date_format . "\",0) returned " . $testdump);
echo("Error: date_format test failed. gmstrftime(\"" . $this->date_format . "\",0) returned " . $testdump);
$fail = true;
}
@ -249,7 +249,7 @@ final class Settings {
ob_start();
var_dump($test);
$testdump = ob_get_clean();
echo("Assertion failed: strftime(\"%Y-%m-%d %H:%M\",0) != \"1970-01-01 00:00\"<br>");
echo("Assertion failed: gmstrftime(\"%Y-%m-%d %H:%M\",0) != \"1970-01-01 00:00\"<br>");
echo("Actual result: " . $testdump);
$fail = true;
}