mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-01-04 13:09:17 +01:00
[bug] fix clock hours as words when not set to 24 hours
This commit is contained in:
parent
b02e1d3074
commit
4d7abab002
@ -34,7 +34,7 @@ var clock = (function() {
|
|||||||
if (!state.get().header.clock.hour24.show && timeDateNow.hours() > 12) {
|
if (!state.get().header.clock.hour24.show && timeDateNow.hours() > 12) {
|
||||||
timeStrings.hours = timeStrings.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) {
|
if (state.get().header.clock.hour24.show && timeDateNow.hours() > 0 && timeDateNow.hours() < 10) {
|
||||||
timeStrings.hours = "Zero " + timeStrings.hours;
|
timeStrings.hours = "Zero " + timeStrings.hours;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user