mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-05-01 01:27:22 +08:00
fix: Function strftime() is deprecated
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ else
|
|||||||
}
|
}
|
||||||
else $username = $lang_shoutbox['text_guest'];
|
else $username = $lang_shoutbox['text_guest'];
|
||||||
if (isset($CURUSER) && $CURUSER['timetype'] != 'timealive')
|
if (isset($CURUSER) && $CURUSER['timetype'] != 'timealive')
|
||||||
$time = strftime("%m.%d %H:%M",$arr["date"]);
|
$time = (new DateTime())->setTimestamp($arr["date"])->format('m.d H:i');
|
||||||
else $time = get_elapsed_time($arr["date"]).$lang_shoutbox['text_ago'];
|
else $time = get_elapsed_time($arr["date"]).$lang_shoutbox['text_ago'];
|
||||||
print("<tr><td class=\"shoutrow\"><span class='date'>[".$time."]</span> ".
|
print("<tr><td class=\"shoutrow\"><span class='date'>[".$time."]</span> ".
|
||||||
$del ." ". $username." " . format_comment($arr["text"],true,false,true,true,600,false,false)."
|
$del ." ". $username." " . format_comment($arr["text"],true,false,true,true,600,false,false)."
|
||||||
|
|||||||
Reference in New Issue
Block a user