fixed issue 1586:MSSQL Date format is language dependent, thanks score2000

This commit is contained in:
mdipierro committed 2013-07-15 09:34:04 -05:00
1 parent b60452ef47
commit a7cc24254b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1857,7 +1857,7 @@ class BaseAdapter(ConnectionPool):
if isinstance(obj, datetime.datetime):
obj = obj.isoformat(self.T_SEP)[:19]
elif isinstance(obj, datetime.date):
obj = obj.isoformat()[:10]+' 00:00:00'
obj = obj.isoformat()[:10]+self.T_SEP+'00:00:00'
else:
obj = str(obj)
elif fieldtype == 'time':