Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1062 -- Fixed database typecasting bug for DateTimeFields in S…

…QLite. Thanks, Nesh and cmaloney

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6e50a2ef5d7530ffe29c069cc5ff5613cb5f3045 1 parent 2667ead
Adrian Holovaty authored January 15, 2006

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/core/db/typecasts.py
1  django/core/db/typecasts.py
@@ -20,6 +20,7 @@ def typecast_timestamp(s): # does NOT store time zone information
20 20
     # "2005-07-29 15:48:00.590358-05"
21 21
     # "2005-07-29 09:56:00-05"
22 22
     if not s: return None
  23
+    if not ' ' in s: return typecast_date(s)
23 24
     d, t = s.split()
24 25
     # Extract timezone information, if it exists. Currently we just throw
25 26
     # it away, but in the future we may make use of it.

0 notes on commit 6e50a2e

Please sign in to comment.
Something went wrong with that request. Please try again.