fix: adds default timezone, supports TZ environment variable for changing TZ, renders dates based on TZ

This commit is contained in:
2025-06-12 10:45:28 -05:00
parent 38a5baa17e
commit 6e0eed8b4e
3 changed files with 13 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
twig:
file_name_pattern: '*.twig'
date:
timezone: '%env(default:app.default.timezone:TZ)%'
when@test:
twig:

View File

@@ -21,6 +21,9 @@ parameters:
app.cache.adapter.default: 'filesystem'
app.cache.redis.host.default: 'redis://redis'
# Various configs
app.default.timezone: 'America/Chicago'
services:
# default configuration for services in *this* file
_defaults: