Skip to content

Commit

Permalink
Merge pull request #623 from jbouffard/bug-fix/query-time-intervals
Browse files Browse the repository at this point in the history
time_intervals Will Now Enumerate Correctly in catalog.query
  • Loading branch information
Jacob Bouffard committed Jan 24, 2018
2 parents 83074e6 + 8d81ac7 commit 8f6970a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geopyspark/geotrellis/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ def query(uri,
query_proj = str(query_proj)

if time_intervals:
for x in enumerate(time_intervals):
time = time_intervals[x]
for x, time in enumerate(time_intervals):
if time.tzinfo:
time_intervals[x] = time.astimezone(pytz.utc).isoformat()
else:
Expand Down

0 comments on commit 8f6970a

Please sign in to comment.