From 38b504a6e5a322218df953a606b584ccc1dfd2fe Mon Sep 17 00:00:00 2001 From: SJS87 Date: Thu, 11 Aug 2016 17:04:53 +0100 Subject: [PATCH] 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. --- app/time_conditions/time_condition_edit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php index 81e32df6a1..48cefc22df 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -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; }