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
# datetime
typ = field.get_internal_type()
if val and typ in ('DateField', 'DateTimeField'):
return datetime.datetime.strptime(val, '%Y-%m-%dT%H:%M:%S.%f')
This code block raises the following error:
ValueError: unconverted data remains: +00:00
The text was updated successfully, but these errors were encountered:
rmartins90
changed the title
error when deserializing datefield
error when deserializing datetimefield
Oct 11, 2015
Hi, thanks for the PR, the code makes perfect sense but do you have a use case ?
it's probably related to how dates are stored somewhere but since i don't reproduce I'd like to have at least a test case to make sure it doesn't break again later.
ValueError at /admin/type/
time data '2017-05-17T18:09:18' does not match format '%Y-%m-%dT%H:%M:%S.%f'
mysql version: Ver 14.14 Distrib 5.5.55, for debian-linux-gnu (x86_64) using readline 6.3.
No error using mysql version: Ver 14.14 Distrib 5.7.12, for Win64 (x86_64).
It seems lower version mysql doesn't support microseconds. The date format is: '%Y-%m-%dT%H:%M:%S' without '.%f'.
Add data is ok. But when you edit it and save (this will cause ES index updating), and search again, this error arise.
We can't update mysql for some reason. Help me.
This code block raises the following error:
The text was updated successfully, but these errors were encountered: