1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

magic-removal: Merged to [1971]

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2006-01-15 05:55:48 +00:00
parent 2cfb709ac2
commit 974316939a
5 changed files with 13 additions and 9 deletions

View File

@@ -52,6 +52,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.