Skip to content

Commit

Permalink
Fixes #23 - time skewed by one step!
Browse files Browse the repository at this point in the history
  • Loading branch information
fspc committed Nov 16, 2017
1 parent 34650c9 commit 4574410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Connections/database_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ function list_min($start_time, $start_offset_min, $form_name, $hours, $display_e
echo '<option value="current_time">Current Time</option>';
echo '<option value="current_time">--------------------</option>';
}
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 = " &nbsp;&nbsp;[" . date("G:i",mktime(0, 0, 0, 1,1,2000) + ($j+1)*$min*60). " hrs]";
Expand Down

0 comments on commit 4574410

Please sign in to comment.