diff options
author | Andrew Dolgov <[email protected]> | 2021-12-01 13:37:25 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-12-01 13:37:25 +0300 |
commit | aaebe55456b34b878b7bcccef021af7f2c8d3a75 (patch) | |
tree | ded384a94570efb607e98a64bacab63f6b24ad39 /classes | |
parent | a72e24343bddbee4aa2b354aabd91b55e33cd71e (diff) |
Revert "replace strftime with date"
This reverts commit 72e21f89ce2465fafc08a92dc2d216b55f355f28.
Diffstat (limited to 'classes')
-rw-r--r-- | classes/config.php | 2 | ||||
-rw-r--r-- | classes/debug.php | 2 | ||||
-rwxr-xr-x | classes/rssutils.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/classes/config.php b/classes/config.php index 11d2a1bb7..4c8d79ac8 100644 --- a/classes/config.php +++ b/classes/config.php @@ -359,7 +359,7 @@ class Config { if ($check == "version") { - $rv["version"] = date("Y.m", (int)$timestamp) . "-$commit"; + $rv["version"] = date("%y.%m", (int)$timestamp) . "-$commit"; $rv["commit"] = $commit; $rv["timestamp"] = $timestamp; diff --git a/classes/debug.php b/classes/debug.php index fbdf260e0..1b9d499e5 100644 --- a/classes/debug.php +++ b/classes/debug.php @@ -88,7 +88,7 @@ class Debug { if (!self::$enabled || self::$loglevel < $level) return false; - $ts = date("H:i:s", time()); + $ts = date("%H:%M:%S", time()); if (function_exists('posix_getpid')) { $ts = "$ts/" . posix_getpid(); } diff --git a/classes/rssutils.php b/classes/rssutils.php index bcf049a9b..b886a060c 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -920,7 +920,7 @@ class RSSUtils { $entry_timestamp = time(); } - $entry_timestamp_fmt = date("Y/m/d H:i:s", $entry_timestamp); + $entry_timestamp_fmt = strftime("%Y/%m/%d %H:%M:%S", $entry_timestamp); Debug::log("date: $entry_timestamp ($entry_timestamp_fmt)", Debug::LOG_VERBOSE); Debug::log("num_comments: $num_comments", Debug::LOG_VERBOSE); |