mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
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:
parent
2349cda4e1
commit
3435a68fff
@ -235,7 +235,7 @@ final class Settings {
|
|||||||
date_default_timezone_set("UTC"); // temporarily set UTC timezone for testing purposes
|
date_default_timezone_set("UTC"); // temporarily set UTC timezone for testing purposes
|
||||||
|
|
||||||
$fail = false;
|
$fail = false;
|
||||||
$test = strftime($this->date_format, 0);
|
$test = gmstrftime($this->date_format, 0);
|
||||||
if ($test == false) {
|
if ($test == false) {
|
||||||
ob_start();
|
ob_start();
|
||||||
var_dump($test);
|
var_dump($test);
|
||||||
@ -244,7 +244,7 @@ final class Settings {
|
|||||||
$fail = true;
|
$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") {
|
if ($test !== "1970-01-01 00:00") {
|
||||||
ob_start();
|
ob_start();
|
||||||
var_dump($test);
|
var_dump($test);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user