mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 02:05:16 +02:00
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:
parent
adf5db1a0a
commit
d2bae3a4f2
5 changed files with 191 additions and 0 deletions
|
@ -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)~
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
parameters:
|
||||
locale: 'en' # Set the default language to use her
|
||||
timezone: 'Europe/Berlin'
|
||||
partdb_title: 'Part-DB' # The title shown inside of Part-DB (e.g. in the navbar and on homepage)
|
||||
banner: '' # The info text shown in the homepage
|
||||
use_gravatar: true # Set to false, if no Gravatar images should be used for user profiles.
|
||||
|
@ -69,6 +70,10 @@ services:
|
|||
arguments:
|
||||
$base_currency: '%default_currency%'
|
||||
|
||||
App\EventSubscriber\TimezoneListener:
|
||||
arguments:
|
||||
$timezone: '%timezone%'
|
||||
|
||||
App\Services\TranslationExtractor\PermissionExtractor:
|
||||
tags:
|
||||
- { name: 'translation.extractor', alias: 'permissionExtractor'}
|
Loading…
Add table
Add a link
Reference in a new issue