CC-5594 : Remove all date_default_timezone_get()

setting display time using user timezone.
last played was never converted properly for display previously.
This commit is contained in:
Naomi 2013-12-04 15:24:27 -05:00
parent 10d8351f93
commit e71f306c7d
1 changed files with 7 additions and 0 deletions

View File

@ -854,6 +854,13 @@ SQL;
$row['utime'] = new DateTime($row['utime'], $utcTimezone);
$row['utime']->setTimeZone($displayTimezone);
$row['utime'] = $row['utime']->format('Y-m-d H:i:s');
//need to convert last played to localtime if it exists.
if (isset($row['lptime'])) {
$row['lptime'] = new DateTime($row['lptime'], $utcTimezone);
$row['lptime']->setTimeZone($displayTimezone);
$row['lptime'] = $row['lptime']->format('Y-m-d H:i:s');
}
// we need to initalize the checkbox and image row because we do not retrieve
// any data from the db for these and datatables will complain