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

This commit is contained in:
mdipierro
2013-07-15 09:34:04 -05:00
parent b60452ef47
commit a7cc24254b
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.07.15.09.21.09
Version 2.6.0-development+timestamp.2013.07.15.09.33.15

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':