summaryrefslogtreecommitdiff
path: root/src/View.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-01-15 15:50:43 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-01-15 15:50:43 +0100
commitd58f61770463aab2c71464c11f902f0074b49b62 (patch)
tree97f55098caa342c1146f4e0bdc9f299affb62739 /src/View.php
parent2d0da0b920035c90d56db5dbec6d62f5b50ba0c2 (diff)
http catch-upHEADmain
Diffstat (limited to 'src/View.php')
-rw-r--r--src/View.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/View.php b/src/View.php
index 10ce9db..761ef62 100644
--- a/src/View.php
+++ b/src/View.php
@@ -25,6 +25,10 @@ class View
// self::$twig->addExtension(new IntlExtension());
self::$twig->addFilter(new TwigFilter('buildTime', function ($buildTime) {
+ if ($buildTime > 3600*24) {
+ return @sprintf('%02d:%02d:%02d:%02d', $buildTime / (3600*24), $buildTime / 3600, ($buildTime / 60) % 60, $buildTime % 60);
+ }
+
return @sprintf('%02d:%02d:%02d', $buildTime / 3600, ($buildTime / 60) % 60, $buildTime % 60);
}));
}