mirror of
https://github.com/django/django.git
synced 2025-06-14 16:09:12 +00:00
Removed unused 'tz' variable in typecast_timestamp().
This commit is contained in:
parent
a7ef4a56e0
commit
978ad6d4c0
@ -158,15 +158,11 @@ def typecast_timestamp(s): # does NOT store time zone information
|
|||||||
if ' ' not in s:
|
if ' ' not in s:
|
||||||
return typecast_date(s)
|
return typecast_date(s)
|
||||||
d, t = s.split()
|
d, t = s.split()
|
||||||
# Extract timezone information, if it exists. Currently it's ignored.
|
# Remove timezone information.
|
||||||
if '-' in t:
|
if '-' in t:
|
||||||
t, tz = t.split('-', 1)
|
t, _ = t.split('-', 1)
|
||||||
tz = '-' + tz
|
|
||||||
elif '+' in t:
|
elif '+' in t:
|
||||||
t, tz = t.split('+', 1)
|
t, _ = t.split('+', 1)
|
||||||
tz = '+' + tz
|
|
||||||
else:
|
|
||||||
tz = ''
|
|
||||||
dates = d.split('-')
|
dates = d.split('-')
|
||||||
times = t.split(':')
|
times = t.split(':')
|
||||||
seconds = times[2]
|
seconds = times[2]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user