From d9b7360f250bf4ce1cb6f213e46cb333683710b4 Mon Sep 17 00:00:00 2001 From: ruan Date: Sat, 4 Feb 2017 14:47:44 +0200 Subject: [PATCH] Modify strftime test --- inc/settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/settings.php b/inc/settings.php index 0d9c37a..b3bbd07 100644 --- a/inc/settings.php +++ b/inc/settings.php @@ -128,12 +128,12 @@ final class Settings { $fail = true; } - $test = strftime("%F %H:%M:%S", 0); - if ($test !== "1970-01-01 00:00:00") { + $test = strftime("%Y-%m-%d %H:%M", 0); + if ($test !== "1970-01-01 00:00") { ob_start(); var_dump($test); $testdump = ob_get_clean(); - echo("Assertion failed: strftime(\"%F %T\",0) != \"1970-01-01 00:00:00\"
"); + echo("Assertion failed: strftime(\"%Y-%m-%d %H:%M\",0) != \"1970-01-01 00:00:00\"
"); echo("Actual result: " . $testdump); $fail = true; }