I'm currently trying to display a "time" record from my database in PHP, and for some strange reason, it displays time + 1 minute.
Record
'09:00:00'
And when my php code
$schedule = DB::table('event_sessions')->get();
foreach $schedule as $session {
echo date( 'g:m A', strtotime($session->start_time)
}
it is displayed as
9:01 AM
Is there some kind of configuration that might be wrong? I use the Laravel and MySQL framework.
source
share