From 4d7abab002576bbddbc3753b47d78a27135bbf78 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Tue, 19 Nov 2019 15:12:09 +0000 Subject: [PATCH] [bug] fix clock hours as words when not set to 24 hours --- src/js/clock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/clock.js b/src/js/clock.js index 068c77ea..cef4dc36 100644 --- a/src/js/clock.js +++ b/src/js/clock.js @@ -34,7 +34,7 @@ var clock = (function() { if (!state.get().header.clock.hour24.show && timeDateNow.hours() > 12) { timeStrings.hours = timeStrings.hours - 12; }; - timeStrings.hours = helper.toWords(timeDateNow.hours()); + timeStrings.hours = helper.toWords(timeStrings.hours); if (state.get().header.clock.hour24.show && timeDateNow.hours() > 0 && timeDateNow.hours() < 10) { timeStrings.hours = "Zero " + timeStrings.hours; };