-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] TimeType
with a reference_date
, view_timezone
and model_timezone
with a widget
to single_text
is not displaying correctly with HTML5
enabled.
#46137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
TimeType
with a reference_date
, view_timezone
and model_timezone
with a widget
to single_text
is not displaying correct info.TimeType
with a reference_date
, view_timezone
and model_timezone
with a widget
to single_text
is not displaying correctly with HTML5
enabled.
TimeType
with a reference_date
, view_timezone
and model_timezone
with a widget
to single_text
is not displaying correctly with HTML5
enabled.TimeType
with a reference_date
, view_timezone
and model_timezone
with a widget
to single_text
is not displaying correctly with HTML5
enabled.
Can you create a small example application that allows to reproduce your issue? |
Hello @xabbuh! Sure thing, here for you: https://github.com/RSickenberg/Symfony_bug_46137 Regards |
Sorry for the spam @xabbuh, did you get my notification? |
Yes, but I didn't have the time yet to look into this issue. |
Sure, no problem :) |
Can you confirm that #46216 fixes it for you? |
nicolas-grekas
added a commit
that referenced
this issue
Apr 30, 2022
…fferent timezones (xabbuh) This PR was merged into the 4.4 branch. Discussion ---------- [Form] fix populating single widget time view data with different timezones | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #46137 | License | MIT | Doc PR | Commits ------- 430f7c4 [Form] fix populating single widget time view data with different timezones
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
6.0.0 - 6.0.8
Description
Hello folks!
When creating a
TimeType
form field with thewidget
assingle_text
and timezones the displayed value is not properly formatted for the browser.is outputting in HTML:
How to reproduce
is outputting in HTML:
Possible Solution
My guess is here:
form/Extension/Core/Type/TimeType.php:84
We are dealing with the
reference_date
on thePRE_SUBMIT
event but it's maybe too soon? The date shouldn't be displayed yet with the optionHTML5
enabled.Additional Context
Many thanks & best regards 😊
The text was updated successfully, but these errors were encountered: