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
public string $datetime_released = '2024-10-01 21:37:45 UTC';
If I create a new Nette\Utils\DateTime out of this string:
$time = new Nette\Utils\DateTime($datetime_released)
and run {$time|localDate}, it will show me something like
"dnes 21:37"
IntlDateFormatter, on the other hand, takes the TimeZone set in Bootstrap.php into account:
$configurator->setTimeZone('Europe/Prague');
and will print 23:37, which corresponds to CEST.
It is my opinion that Latte Engine should take the TimeZone set up in the Bootstrap into account when formatting dates and times, too, and the documentation should mention behavior of localDate filter with regard to TimeZone.
The text was updated successfully, but these errors were encountered:
Version: 3.0.18
Let us consider the following date and time:
public string $datetime_released = '2024-10-01 21:37:45 UTC';
If I create a new Nette\Utils\DateTime out of this string:
$time = new Nette\Utils\DateTime($datetime_released)
and run {$time|localDate}, it will show me something like
"dnes 21:37"
IntlDateFormatter, on the other hand, takes the TimeZone set in Bootstrap.php into account:
$configurator->setTimeZone('Europe/Prague');
and will print 23:37, which corresponds to CEST.
It is my opinion that Latte Engine should take the TimeZone set up in the Bootstrap into account when formatting dates and times, too, and the documentation should mention behavior of localDate filter with regard to TimeZone.
The text was updated successfully, but these errors were encountered: