Use UTC where appropriate in python files

This commit is contained in:
NTD 2018-02-02 12:00:37 -05:00 committed by Roy Tam
commit 30d5f081aa
16 changed files with 29 additions and 29 deletions

View file

@ -182,7 +182,7 @@ class GTestXMLOutputUnitTest(gtest_xml_test_utils.GTestXMLTestCase):
day=int(match.group(3)), hour=int(match.group(4)),
minute=int(match.group(5)), second=int(match.group(6)))
time_delta = abs(datetime.datetime.now() - date_time_from_xml)
time_delta = abs(datetime.datetime.utcnow() - date_time_from_xml)
# timestamp value should be near the current local time
self.assertTrue(time_delta < datetime.timedelta(seconds=600),
'time_delta is %s' % time_delta)