New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTimeZone #1063
Comments
You can set it in custom renderer through $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');
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: