Skip to content

Commit

Permalink
Make end time match expected format (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
aywaldron committed Oct 23, 2019
1 parent 1798cfb commit 3b311f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ait/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ def handle():
start_time = points[0]['time'][:19] + 'Z'
ranges[i].append(start_time)
# Round end time up to nearest second
end_time = points[len(points) - 1]['time']
end_time = points[len(points) - 1]['time'][:-4] + 'Z'
dt = datetime.strptime(end_time, '%Y-%m-%dT%H:%M:%S.%fZ')
if dt.microsecond != 0:
dt += timedelta(0, 1)
Expand Down

0 comments on commit 3b311f0

Please sign in to comment.