Update to time_condition_edit.php (#1803)
When using 'time-of-day' it's not currently possible to specify a range which will finish at the end of the day. This is a minor adjustment to allow the 'time-of-day' range to finish at 23:59.
This commit is contained in:
parent
7929ef8a22
commit
31a8444fa5
|
|
@ -709,6 +709,9 @@
|
|||
sel_stop.options[sel_stop.options.length] = new Option(((h != 0) ? ((h >= 12) ? ((h == 12) ? h : (h - 12)) + ':' + pad(m, 2) + ' PM' : h + ':' + pad(m, 2) + ' AM') : '12:' + pad(m, 2) + ' AM'), pad(h, 2) + ':' + pad(m, 2));
|
||||
}
|
||||
}
|
||||
h = 23;
|
||||
m = 59;
|
||||
sel_stop.options[sel_stop.options.length] = new Option(((h != 0) ? ((h >= 12) ? ((h == 12) ? h : (h - 12)) + ':' + pad(m, 2) + ' PM' : h + ':' + pad(m, 2) + ' AM') : '12:' + pad(m, 2) + ' AM'), pad(h, 2) + ':' + pad(m, 2));
|
||||
break;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue