From c0c702a5e3284e843e680064b4c6a7280242c567 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" <email@mattatobin.com> Date: Fri, 2 Feb 2018 12:00:37 -0500 Subject: Use UTC where appropriate in python files --- media/webrtc/trunk/testing/gtest/test/gtest_xml_output_unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/webrtc/trunk/testing/gtest') diff --git a/media/webrtc/trunk/testing/gtest/test/gtest_xml_output_unittest.py b/media/webrtc/trunk/testing/gtest/test/gtest_xml_output_unittest.py index 1bcd4187e..8cdfb56b6 100755 --- a/media/webrtc/trunk/testing/gtest/test/gtest_xml_output_unittest.py +++ b/media/webrtc/trunk/testing/gtest/test/gtest_xml_output_unittest.py @@ -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) -- cgit v1.2.3