Fix typo in sprintf #403

This commit is contained in:
Kendrick Chan 2020-05-09 22:32:01 +08:00
parent 1269774c39
commit dc744e7117

View file

@ -3078,7 +3078,7 @@ class APIController extends Controller implements LoggedController
$mins = $date_sched->format('i');
if ($mins > 10)
{
$next_slot_id = sprintf('%02d_$02d', $hour + 1, $hour + 2);
$next_slot_id = sprintf('%02d_%02d', $hour + 1, $hour + 2);
error_log("NEXT SLOT - $date_string - $next_slot_id");
// decrement rider slot
if (isset($hub_rider_slots[$date_string][$next_slot_id]))