Changeset 347
- Timestamp:
- 07/29/05 16:40:09 (3 years ago)
- Files:
-
- django/trunk/django/core/db/typecasts.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/db/typecasts.py
r346 r347 22 22 if not s: return None 23 23 d, t = s.split() 24 if t[-3] in ('-', '+'): 25 t = t[:-3] # Remove the time-zone information, if it exists. 24 # Extract timezone information, if it exists. Currently we just throw 25 # it away, but in the future we may make use of it. 26 if '-' in t: 27 t, tz = t.split('-', 1) 28 tz = '-' + tz 29 elif '+' in t: 30 t, tz = t.split('+', 1) 31 tz = '+' + tz 32 else: 33 tz = '' 26 34 dates = d.split('-') 27 35 times = t.split(':')
