Ticket #14453: typecast_timestamp_fix.diff

File typecast_timestamp_fix.diff, 568 bytes (added by philipn, 14 years ago)
  • django/db/backends/util.py

     
    9292    else:
    9393        microseconds = '0'
    9494    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]))
    9696
    9797def typecast_boolean(s):
    9898    if s is None: return None
Back to Top