1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 08:53:23 -05:00

Fixes #23 - time skewed by one step!

This commit is contained in:
Jonathan Rosenbaum 2017-11-16 02:13:43 +00:00
parent 34650c9be0
commit 4574410744

View File

@ -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]";