Ticket #1062: typecast.diff

File typecast.diff, 539 bytes (added by Nebojša Đorđević - nesh <nesh@…>, 19 years ago)

slightly different patch

  • django/core/db/typecasts.py

     
    2020    # "2005-07-29 15:48:00.590358-05"
    2121    # "2005-07-29 09:56:00-05"
    2222    if not s: return None
     23    if not ' ' in s: return typecast_date(s) # fix SQLite bug (#1062)
    2324    d, t = s.split()
    2425    # Extract timezone information, if it exists. Currently we just throw
    2526    # it away, but in the future we may make use of it.
Back to Top