convert timesheets to UTC with support for user timezone (#372)
This commit is contained in:
@@ -17,6 +17,9 @@ doctrine:
|
||||
|
||||
# With Symfony 3.3, remove the `resolve:` prefix
|
||||
url: '%env(resolve:DATABASE_URL)%'
|
||||
|
||||
types:
|
||||
datetime: App\Doctrine\UTCDateTimeType
|
||||
orm:
|
||||
auto_generate_proxy_classes: '%kernel.debug%'
|
||||
naming_strategy: doctrine.orm.naming_strategy.underscore
|
||||
|
||||
@@ -47,6 +47,11 @@ kimai:
|
||||
soft_limit: 1
|
||||
hard_limit: 3
|
||||
|
||||
# Rules that define the Timesheet validation and behaviour
|
||||
rules:
|
||||
# whether records in the future can be created
|
||||
allow_future_times: true
|
||||
|
||||
# --------------------------------------------------------------------------------
|
||||
# Invoice management
|
||||
#invoice:
|
||||
|
||||
@@ -105,6 +105,10 @@ services:
|
||||
tags:
|
||||
- { name: form.type_extension, extended_type: Symfony\Bridge\Doctrine\Form\Type\EntityType }
|
||||
|
||||
App\Validator\Constraints\TimesheetValidator:
|
||||
arguments:
|
||||
$ruleset: "%kimai.timesheet.rules%"
|
||||
|
||||
# ================================================================================
|
||||
# THEME
|
||||
# ================================================================================
|
||||
|
||||
Reference in New Issue
Block a user