Use current timezone to show formatted datetimes in datatables.

This commit is contained in:
Jan Böhmer 2020-05-20 23:04:47 +02:00
parent c60f27ef86
commit 2b21d4039a

View file

@ -75,7 +75,7 @@ class LocaleDateTimeColumn extends AbstractColumn
Locale::getDefault(), Locale::getDefault(),
$formatValues[$this->options['dateFormat']], $formatValues[$this->options['dateFormat']],
$formatValues[$this->options['timeFormat']], $formatValues[$this->options['timeFormat']],
$value->getTimezone() null
); );
return $formatter->format($value->getTimestamp()); return $formatter->format($value->getTimestamp());