mirror of
https://github.com/symfony/symfony.git
synced 2026-03-24 00:32:15 +01:00
This PR was merged into the 8.1 branch.
Discussion
----------
[JsonStreamer] Support date time timezone
| Q | A
| ------------- | ---
| Branch? | 8.1
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | Fix #63099
| License | MIT
Add timezone support to `DateTimeValueObjectTransformer`, similar to what `DateTimeNormalizer` already does in the Serializer component.
A `TIMEZONE_KEY` option can be passed (as a `\DateTimeZone` or `string`) to convert the timezone when encoding/decoding datetimes.
Commits
-------
7a18ee1e77 [JsonStreamer] Add timezone support to DateTimeValueObjectTransformer