fix bug in datetime tuple concatenation
Michal Ludvig authored on 2013/02/24 11:42:35... | ... |
@@ -173,7 +173,7 @@ def formatDateTime(s3timestamp): |
173 | 173 |
## Can't unpack args and follow that with kwargs in python 2.5 |
174 | 174 |
## So we pass them all as kwargs |
175 | 175 |
params = zip(('year', 'month', 'day', 'hour', 'minute', 'second', 'tzinfo'), |
176 |
- dateS3toPython(s3timestamp)[0:6] + (tz)) |
|
176 |
+ dateS3toPython(s3timestamp)[0:6] + (tz,)) |
|
177 | 177 |
params = dict(params) |
178 | 178 |
utc_dt = datetime.datetime(**params) |
179 | 179 |
dt_object = utc_dt.astimezone(timezone) |