Ticket #14453: typecast_timestamp_fix.diff
File typecast_timestamp_fix.diff, 568 bytes (added by , 14 years ago) |
---|
-
django/db/backends/util.py
92 92 else: 93 93 microseconds = '0' 94 94 return datetime.datetime(int(dates[0]), int(dates[1]), int(dates[2]), 95 int(times[0]), int(times[1]), int(seconds), int( float('.'+microseconds) * 1000000))95 int(times[0]), int(times[1]), int(seconds), int((microseconds+'000000')[0:6])) 96 96 97 97 def typecast_boolean(s): 98 98 if s is None: return None