From 5c633c7fffde0bdc8cd97b70cadc4a11806f2591 Mon Sep 17 00:00:00 2001 From: Arona Date: Wed, 27 May 2020 15:51:11 -0400 Subject: [PATCH] Force 12hr time on CI Hmm... --- PyRIGS/tests/regions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PyRIGS/tests/regions.py b/PyRIGS/tests/regions.py index a4ac9253..03977d98 100644 --- a/PyRIGS/tests/regions.py +++ b/PyRIGS/tests/regions.py @@ -7,6 +7,7 @@ from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.select import Select from selenium.webdriver.common.keys import Keys import datetime +import os def parse_bool_from_string(string): @@ -24,8 +25,8 @@ def parse_bool_from_string(string): def get_time_format(): # Default time_format = "%H:%M" - # If system is 12hr - if timezone.now().strftime("%p"): + # If system is 12hr FIXME Hack on the CI... + if timezone.now().strftime("%p") or os.environ.get('CI', False): time_format = "%I:%M %p" return time_format