diff options
Diffstat (limited to 'app/Helper')
-rw-r--r-- | app/Helper/Dt.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Helper/Dt.php b/app/Helper/Dt.php index be595605..b338fdc8 100644 --- a/app/Helper/Dt.php +++ b/app/Helper/Dt.php @@ -21,6 +21,10 @@ class Dt extends \Core\Base */ public function duration($seconds) { + if ($seconds == 0) { + return 0; + } + $dtF = new DateTime("@0"); $dtT = new DateTime("@$seconds"); return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds'); |