From 4574410744496d1b1c7284fbdfc685f47ddb10e1 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Thu, 16 Nov 2017 02:13:43 +0000 Subject: [PATCH] Fixes #23 - time skewed by one step! --- Connections/database_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connections/database_functions.php b/Connections/database_functions.php index d81e229..637c39d 100644 --- a/Connections/database_functions.php +++ b/Connections/database_functions.php @@ -603,7 +603,7 @@ function list_min($start_time, $start_offset_min, $form_name, $hours, $display_e echo ''; echo ''; } - for ($j = 0; $j <= $hours* (60 / $min); $j++) { + for ($j = -1; $j <= $hours* (60 / $min); $j++) { $list_time = $start_time + $j*$min*60; if ($display_elapsed_hours == 1) { $elapsed_hours = "   [" . date("G:i",mktime(0, 0, 0, 1,1,2000) + ($j+1)*$min*60). " hrs]";