From f1aa5e698d06fc0d3d3c715d49516fb213fd6170 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Tue, 15 Nov 2016 11:19:30 +1100 Subject: [PATCH] Return appointment intervals to 5 minutes --- functions/functions.calendar.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/functions.calendar.php b/functions/functions.calendar.php index 65eed851..0400dd82 100644 --- a/functions/functions.calendar.php +++ b/functions/functions.calendar.php @@ -341,7 +341,7 @@ function display_time($questionnaire_id,$respondent_id, $day, $month, $year, $ti print ""; } - $sm += 15; + $sm += 5; if ($sm >= 60) { $sh++; @@ -364,7 +364,7 @@ function display_time($questionnaire_id,$respondent_id, $day, $month, $year, $ti $sm = $r['sm']; $intervals = $r['intervals']; - // * Display only times after the start time and within the shift in 15 minute intervals + // * Display only times after the start time and within the shift in 5 minute intervals for ($i = 0; $i <= $intervals-1; $i++) { $t = str_pad($sh,2,"0",STR_PAD_LEFT).":".str_pad($sm,2,"0",STR_PAD_LEFT).":00"; @@ -377,7 +377,7 @@ function display_time($questionnaire_id,$respondent_id, $day, $month, $year, $ti print ""; } - $sm += 15; + $sm += 5; if ($sm >= 60) { $sh++;