Skip to content

Commit 7d52a57

Browse files
authored
Assert valid timezone in date time fallback output transformer (#378)
* Assert valid timezone in date time fallback output transformer
1 parent fb3059a commit 7d52a57

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

UPGRADE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Upgrade Notes
22

3+
## Version 4.3.2
4+
- **[BUGFIX]**: Assert valid timezone in date time fallback output transformer
5+
36
## Version 4.3.1
47
- **[BUGFIX]**: Fix field collection assignment [#375](https://github.com/dachcom-digital/pimcore-formbuilder/issues/375)
58

src/FormBuilderBundle/Transformer/Output/FallbackTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function parseDefaultDateField(\DateTime $value, $fieldType, ?string $
114114
$locale,
115115
$formatValues[$dateFormat],
116116
$formatValues[$timeFormat],
117-
\IntlTimeZone::createTimeZone($value->getTimezone()->getName())->getID(),
117+
$value->getTimezone(),
118118
\IntlDateFormatter::GREGORIAN, // @todo: allow different formatter types (\IntlDateFormatter::TRADITIONAL)?
119119
null
120120
);

0 commit comments

Comments
 (0)