From 3435a68fffba866e43181bd147a84e5c1a5daad7 Mon Sep 17 00:00:00 2001 From: ruan Date: Tue, 20 Mar 2018 14:51:05 +0200 Subject: [PATCH] Use gmstrftime() instead of strftime() for testing I can't replicate any bugs that may affect test_strftime(), so this might not fix anything. --- inc/settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/settings.php b/inc/settings.php index b1d5caa..8e43267 100644 --- a/inc/settings.php +++ b/inc/settings.php @@ -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);