From 3b311f029ec6c09f6d1a872a461a168eedf22190 Mon Sep 17 00:00:00 2001 From: Anna Waldron Date: Wed, 23 Oct 2019 11:44:02 -0700 Subject: [PATCH] Make end time match expected format (#143) --- ait/gui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ait/gui/__init__.py b/ait/gui/__init__.py index 791e504d..49646e81 100644 --- a/ait/gui/__init__.py +++ b/ait/gui/__init__.py @@ -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)