Correct duration calculation

Fixes #4464
This commit is contained in:
Franky Van Liedekerke
2020-04-26 20:32:03 +02:00
committed by GitHub
parent 791c4abd57
commit b31af33b51

View File

@@ -73,7 +73,7 @@ class DateHelper extends Base
$dtF = new DateTime("@0");
$dtT = new DateTime("@$seconds");
$format = sprintf("%%d %s, %%h %s, %%i %s, %%s %s", t('days'), t('hours'), t('minutes'), t('seconds'));
$format = sprintf("%%a %s, %%h %s, %%i %s, %%s %s", t('days'), t('hours'), t('minutes'), t('seconds'));
return $dtF->diff($dtT)->format($format);
}