diff options
| author | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2018-11-09 18:57:07 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-11-09 12:47:02 -0500 |
| commit | 978ad6d4c043f5004005b673c6e7bb8f415a35dc (patch) | |
| tree | 23219e0d76abf9a393c8f945b307fcaeb8652fd1 /django/db/backends/utils.py | |
| parent | a7ef4a56e0e72b3cb3aa2db7e6bb4417fced9e6f (diff) | |
Removed unused 'tz' variable in typecast_timestamp().
Diffstat (limited to 'django/db/backends/utils.py')
| -rw-r--r-- | django/db/backends/utils.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/django/db/backends/utils.py b/django/db/backends/utils.py index 2062af91f1..597e6b3a9d 100644 --- a/django/db/backends/utils.py +++ b/django/db/backends/utils.py @@ -158,15 +158,11 @@ def typecast_timestamp(s): # does NOT store time zone information if ' ' not in s: return typecast_date(s) d, t = s.split() - # Extract timezone information, if it exists. Currently it's ignored. + # Remove timezone information. if '-' in t: - t, tz = t.split('-', 1) - tz = '-' + tz + t, _ = t.split('-', 1) elif '+' in t: - t, tz = t.split('+', 1) - tz = '+' + tz - else: - tz = '' + t, _ = t.split('+', 1) dates = d.split('-') times = t.split(':') seconds = times[2] |
