Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #21218 [Form] DateTimeToLocalizedStringTransformer does not use t…
…imezone when using date only (magnetik) This PR was merged into the 2.7 branch. Discussion ---------- [Form] DateTimeToLocalizedStringTransformer does not use timezone when using date only | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21217 | License | MIT The `DateTimeToLocalizedStringTransformer` when used with a pattern that have only date (in `DateType` for instance) does not convert the result in the desired output Reproduction steps: - Use `DateType` in a form - Set the `model_timezone` to `Pacific/Tahiti`, having default timezone to `Europe/Berlin`. - Enter the date `2017-01-10` - Submit the form - Notice that the received data is `2017-01-10 00:00 Europe/Berlin`, whereas it should be `2017-01-10 11:00 Europe/Berlin` Commits ------- 031d8c2 [Form] DateTimeToLocalizedStringTransformer does not use TZ when using only date
- Loading branch information