-1

このコードを知っている人は誰でも、「2 月 28 日午後 6:09:06 に禁止、3 月 1 日 6:09 まで:午前6時」

$BanDate = date("F nS, g:i:sa", $other['BanTime'] + 3600);
$BanDateK = date("F nS, g:i:sa", $other['BanTimeK'] + 3600);
if($other['BanTime'] == "life"){
echo"<center>R.I.P. ".$other['Username'].", Banned on ".$BanDateK."</center>";
} elseif($other['BanTime'] >= time()){
echo"<center>Banned on ".$BanDateK.", Until ".$BanDate."</center>";
}

データベースの時間は「1362308946」のようになります。

4

1 に答える 1

0

私の最初の推測では、 の値は$other['BanTimeK'] + 36002 月 2 日に対応する...

調べてみたところ13623089463月3日に対応。

の値を再確認し$other['BanTimeK']、それでも解決しない場合は、詳細をお知らせください。

于 2013-02-28T23:45:34.457 に答える