summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2022-11-16 19:15:20 +0100
committerTom Smeding <tom@tomsmeding.com>2022-11-16 19:15:20 +0100
commit1d329c2570c20a2deff87c4c98b53c4f07e684b1 (patch)
treee079efbfaaeab585228ebc46cde8a2309254c34f /modules
parent728673460b68541b74097e9e6c3ec588286e7d5c (diff)
timetrack3: Day counts are not useful
Diffstat (limited to 'modules')
-rw-r--r--modules/timetrack3/timetrack.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/timetrack3/timetrack.html b/modules/timetrack3/timetrack.html
index 3790f43..2d41bff 100644
--- a/modules/timetrack3/timetrack.html
+++ b/modules/timetrack3/timetrack.html
@@ -89,9 +89,7 @@ function formatduration(secs) {
secs = ~~(secs / 60);
if (secs % 60 != 0) r = secs % 60 + "m" + r;
secs = ~~(secs / 60);
- if (secs % 24 != 0) r = secs % 24 + "h" + r;
- secs = ~~(secs / 24);
- if (secs != 0) r = secs + "d" + r;
+ if (secs != 0) r = secs + "h" + r;
if (r == "") r = "0s";
return r;
}