Use the users timezone for showing dates from the database.

In the database the values are now saved in UTC.
This commit is contained in:
Jan Böhmer 2019-09-12 22:16:33 +02:00
parent adf5db1a0a
commit d2bae3a4f2
5 changed files with 191 additions and 0 deletions

View file

@ -16,6 +16,9 @@ doctrine:
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
types:
datetime: App\Helpers\UTCDateTimeType
date: App\Helpers\UTCDateTimeType
schema_filter: ~^(?!internal|log)~