1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-04-21 09:04:36 +00:00

fix(web/index): countdown diff use ceil()

This commit is contained in:
Baoshuo Ren 2022-10-28 14:06:10 +08:00 committed by GitHub
parent 0689c94351
commit ca85ba3982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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): ?>