summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-06 08:30:24 +0200
committerGitHub <noreply@github.com>2021-07-06 08:30:24 +0200
commitddedcfd146cb63fc22993cd038a278dbebf5b8a6 (patch)
tree67b35c45626fdeb9b4491f3dc977176d6d1b47dd /modules/luci-base/htdocs
parentcef330a1c8b59b0b84bb862b8d04b56892be3803 (diff)
parent0e4b4c5b42f9d8b93a4936c4b2d63f9a90c5a61b (diff)
Merge pull request #5172 from small-5/tmp-2
luci-base:Fix time display error
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/cbi.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index b66fe684a5..22cbecc864 100644
--- a/modules/luci-base/htdocs/luci-static/resources/cbi.js
+++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js
@@ -614,17 +614,17 @@ String.prototype.format = function()
var tm = 0;
var ts = (param || 0);
- if (ts > 60) {
+ if (ts > 59) {
tm = Math.floor(ts / 60);
ts = (ts % 60);
}
- if (tm > 60) {
+ if (tm > 59) {
th = Math.floor(tm / 60);
tm = (tm % 60);
}
- if (th > 24) {
+ if (th > 23) {
td = Math.floor(th / 24);
th = (th % 24);
}