Skip to content

Commit

Permalink
Fixed #1062 -- Fixed database typecasting bug for DateTimeFields in S…
Browse files Browse the repository at this point in the history
…QLite. Thanks, Nesh and cmaloney

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jan 15, 2006
1 parent 2667ead commit 6e50a2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/core/db/typecasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def typecast_timestamp(s): # does NOT store time zone information
# "2005-07-29 15:48:00.590358-05"
# "2005-07-29 09:56:00-05"
if not s: return None
if not ' ' in s: return typecast_date(s)
d, t = s.split()
# Extract timezone information, if it exists. Currently we just throw
# it away, but in the future we may make use of it.
Expand Down

0 comments on commit 6e50a2e

Please sign in to comment.