[bug] fix clock hours as words when not set to 24 hours

This commit is contained in:
zombieFox 2019-11-19 15:12:09 +00:00
parent b02e1d3074
commit 4d7abab002

View File

@ -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;
};