diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 12:00:37 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 12:00:37 -0500 |
commit | c0c702a5e3284e843e680064b4c6a7280242c567 (patch) | |
tree | 59332b13537a0c006c090ae925e8d3be50bb4699 /security/nss/gtests | |
parent | 45d4933f568d8814d8045852a9a1b006b912dcf7 (diff) | |
download | UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.gz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.lz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.xz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.zip |
Use UTC where appropriate in python files
Diffstat (limited to 'security/nss/gtests')
-rwxr-xr-x | security/nss/gtests/google_test/gtest/test/gtest_xml_output_unittest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/gtests/google_test/gtest/test/gtest_xml_output_unittest.py b/security/nss/gtests/google_test/gtest/test/gtest_xml_output_unittest.py index f605d4ee2..467ab1d08 100755 --- a/security/nss/gtests/google_test/gtest/test/gtest_xml_output_unittest.py +++ b/security/nss/gtests/google_test/gtest/test/gtest_xml_output_unittest.py @@ -192,7 +192,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) |