rstrouse / nodejs-poolController-dashPanel

A dashboard panel for tagyoureit/nodejs-poolController
38 stars 20 forks source link

Schedules config visual #77

Closed CodeSlinger69 closed 1 year ago

CodeSlinger69 commented 1 year ago

On the schedules config page, when 24 hour time format is selected, the time is displayed as H:mm. This pull request is to change that display to a (more standard?) more visually appealing HH:mm.

rstrouse commented 1 year ago

Unfortunately this pull contains changes from the previous PR but I get the gist of it and will manually make the changes to the format.

CodeSlinger69 commented 1 year ago

This one is easy. scripts/config/schedules.js, line 64:

-            o.fmtTime = o.clockMode === 12 ? 'h:mmtt' : 'H:mm';
+            o.fmtTime = o.clockMode === 12 ? 'h:mmtt' : 'HH:mm';
rstrouse commented 1 year ago

Yep I will be posting it up tomorrow with some additional fixes that I found along the way.

rstrouse commented 1 year ago

I have pushed this change as well as some others to handle the 24 hour clocks. Pull njsPC and dashPanel.