validation for future and negative times (#512)

This commit is contained in:
Kevin Papst
2019-01-21 01:51:57 +01:00
committed by GitHub
parent 5b1ec1eb8f
commit 5539f68a54
6 changed files with 44 additions and 6 deletions

View File

@@ -196,6 +196,10 @@ class Extensions extends \Twig_Extension
}
}
if ($seconds < 0) {
return '?';
}
$locale = $this->getLocale();
switch ($format) {
case 'full':