You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Submitting a TimeType without seconds and with input option set to "string" and
widget option set to "single_text"
Getting value with seconds: H:i:s How to reproduce
The text was updated successfully, but these errors were encountered:
Fahmus
changed the title
Form] Date\TimeType marked as invalid on request with single_text and without seconds returns seconds
Form] Date\TimeType request with single_text and without seconds returns seconds
Mar 27, 2019
Fahmus
changed the title
Form] Date\TimeType request with single_text and without seconds returns seconds
[Form] Date\TimeType request with single_text and without seconds returns seconds
Mar 27, 2019
Fahmus
changed the title
[Form] Date\TimeType request with single_text and without seconds returns seconds
[Form] TimeType request with single_text and without seconds returns seconds
Mar 27, 2019
Symfony version(s) affected: > 2.3
Description
Submitting a TimeType without seconds and with input option set to "string" and
widget option set to "single_text"
Getting value with seconds: H:i:s
How to reproduce
Possible Solution
In https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php#L117
Change H:i:s by $format
new DateTimeToStringTransformer($options['model_timezone'], $options['model_timezone'], 'H:i:s')
The text was updated successfully, but these errors were encountered: