projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fed9af
)
luci-base: Fix time display error
author
DeYu Liu
<vito_sam@outlook.com>
Tue, 6 Jul 2021 05:44:20 +0000
(13:44 +0800)
committer
Jo-Philipp Wich
<jo@mein.io>
Wed, 7 Jul 2021 15:17:09 +0000
(17:17 +0200)
Signed-off-by: DeYu Liu <vito_sam@outlook.com>
(cherry picked from commit
0e4b4c5b42f9d8b93a4936c4b2d63f9a90c5a61b
)
modules/luci-base/htdocs/luci-static/resources/cbi.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/cbi.js
b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index b66fe684a5d16eea48403ee006d6473054f55754..22cbecc864b10f01a9f97f7936b6e13de17affc1 100644
(file)
--- 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 > 2
4
) {
+ if (th > 2
3
) {
td = Math.floor(th / 24);
th = (th % 24);
}