replace strftime with date
This commit is contained in:
parent
14027ae04e
commit
72e21f89ce
|
@ -359,7 +359,7 @@ class Config {
|
||||||
|
|
||||||
if ($check == "version") {
|
if ($check == "version") {
|
||||||
|
|
||||||
$rv["version"] = date("%y.%m", (int)$timestamp) . "-$commit";
|
$rv["version"] = date("Y.m", (int)$timestamp) . "-$commit";
|
||||||
$rv["commit"] = $commit;
|
$rv["commit"] = $commit;
|
||||||
$rv["timestamp"] = $timestamp;
|
$rv["timestamp"] = $timestamp;
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ class Debug {
|
||||||
|
|
||||||
if (!self::$enabled || self::$loglevel < $level) return false;
|
if (!self::$enabled || self::$loglevel < $level) return false;
|
||||||
|
|
||||||
$ts = date("%H:%M:%S", time());
|
$ts = date("H:i:s", time());
|
||||||
if (function_exists('posix_getpid')) {
|
if (function_exists('posix_getpid')) {
|
||||||
$ts = "$ts/" . posix_getpid();
|
$ts = "$ts/" . posix_getpid();
|
||||||
}
|
}
|
||||||
|
|
|
@ -920,7 +920,7 @@ class RSSUtils {
|
||||||
$entry_timestamp = time();
|
$entry_timestamp = time();
|
||||||
}
|
}
|
||||||
|
|
||||||
$entry_timestamp_fmt = strftime("%Y/%m/%d %H:%M:%S", $entry_timestamp);
|
$entry_timestamp_fmt = date("Y/m/d H:i:s", $entry_timestamp);
|
||||||
|
|
||||||
Debug::log("date: $entry_timestamp ($entry_timestamp_fmt)", Debug::LOG_VERBOSE);
|
Debug::log("date: $entry_timestamp ($entry_timestamp_fmt)", Debug::LOG_VERBOSE);
|
||||||
Debug::log("num_comments: $num_comments", Debug::LOG_VERBOSE);
|
Debug::log("num_comments: $num_comments", Debug::LOG_VERBOSE);
|
||||||
|
|
Loading…
Reference in New Issue