diff --git a/apps/locale/locale.html b/apps/locale/locale.html index f9d89f846..72c862da0 100644 --- a/apps/locale/locale.html +++ b/apps/locale/locale.html @@ -192,8 +192,8 @@ var is12; function getHours(d) { var h = d.getHours(); if (is12 === undefined) is12 = (require('Storage').readJSON('setting.json', 1) || {})["12hour"]; - if (!is12) return ('0'+h).slice(-2); // return with leading zero in 24-hour format - return (h % 12 == 0) ? 12 : h % 12; + if (!is12) return ('0' + h).slice(-2); + return ((h % 12 == 0) ? 12 : h % 12).toString(); } exports = { name: ${js(locale.lang)},