You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can set it in custom renderer through setRenderer, although it renders usage of ColumnDateTime useless and you can use ColumnText instead. Something like this:
$tz = new \DateTimeZone('Europe/Prague');
$grid->setColumnText('date', 'Date') // of course you can call `addColumnDateTime`
->setRenderer(function($item) use ($tz) {
$date = $item->dateProp;
$date->setTimezone($tz);
return$date->format('Y-m-d');
});
datagrid/src/Column/ColumnDateTime.php
Line 35 in 1b0ff6a
It's possible to set up here timezone? Something like this? $date->setTimezone(new \DateTimeZone('Europe/Prague'));
The text was updated successfully, but these errors were encountered: