minor fixes for #952

master
Gordon Williams 2021-11-29 09:52:47 +00:00
parent 795d2b83ec
commit d4f1e7d3cb
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ function round(n) {
var is12; var is12;
function getHours(d) { function getHours(d) {
var h = d.getHours(); var h = d.getHours();
if (is12==undefined) is12 = (require('Storage',1).readJSON('setting.json')||{})["12hour"]; if (is12===undefined) is12 = (require('Storage').readJSON('setting.json',1)||{})["12hour"];
if (!is12) return h; if (!is12) return h;
return (h%12==0) ? 12 : h%12; return (h%12==0) ? 12 : h%12;
} }