mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Force 12hr time on CI
Hmm...
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user