mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 02:58:41 +00:00
fix(web/index): countdown diff use ceil()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0689c94351
commit
ca85ba3982
@ -94,7 +94,7 @@
|
||||
<?php
|
||||
$enddate = strtotime($countdown['end_time']);
|
||||
$nowdate = time();
|
||||
$diff = floor(($enddate - $nowdate) / (24 * 60 * 60));
|
||||
$diff = ceil(($enddate - $nowdate) / (24 * 60 * 60));
|
||||
?>
|
||||
<li>
|
||||
<?php if ($diff > 0): ?>
|
||||
|
Loading…
Reference in New Issue
Block a user