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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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);
}