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
For now, you can use strftime with formats such as %Y-%m-%d for date and %Y-%m-%d %H:%M for datetime. You can implement this in SomeForm to convert the date to a string.
datetime.now(UTC).strftime('%Y-%m-%d %H:%M')
This behavior is due to the format that the value field in the input tag with type="datetime-local" can accept.
When I have a form with datetime with initial value, it doesn't respect the initial value
The text was updated successfully, but these errors were encountered: