Bug #5777
uWeb converts datetime objects to a string incorrectly
Status:
New
Priority:
Normal
Assignee:
-
Category:
Model
Target version:
-
Start date:
2019-11-25
Due date:
% Done:
0%
Estimated time:
Description
datetime.datetime(2019, 11, 22, 14, 32, 50, 689063, tzinfo=datetime.timezone.utc) will be converted to '2019-11-22T14:32:50.689063+00:00' which MySQL doesn't accept. The timezone information of the MySQL server should be used when converting to a string and back. The string should not contain any timezone information.