<p dir="auto">A recent change to the DateTimeToStringTransformer (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/b20c5ca2efc92a99787340a7dff5455f0ceb38a9/hovercard" href="https://github.com/symfony/symfony/commit/b20c5ca2efc92a99787340a7dff5455f0ceb38a9"><tt>b20c5ca</tt></a>) now causes time values with AM/PM timestamps (H:i A) to fail in validation This is because the change now expects all time values to be in H:i:s datetime format whereas previously the system was more compatible with different formats.</p>
<p dir="auto">Works:  14:03:07</p>
<p dir="auto">Fails: 02:03:07 PM</p>
<p dir="auto">This specifically causes errors when using a datetime entity type.</p>
<p dir="auto">It seems that there are two possible ways to fix this issue. The first is to allow the DateTimeType to take in format as an option so users can specify different time formats instead of defaulting to H:i:s in all cases. The other would be to modify the DateTimeToStringTransformer so it is more resistant to failures like this, but could possibly cause the initial fix to break.</p>
<p dir="auto">Is there any other way to bypass this issue?</p>
<p dir="auto">Is there a way to use 12H format in Time Field?</p>