fix(web/index): countdown diff use ceil()
All checks were successful
continuous-integration/drone/push Build is passing

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

View File

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