mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-30 03:42:15 +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.support.select import Select
|
||||||
from selenium.webdriver.common.keys import Keys
|
from selenium.webdriver.common.keys import Keys
|
||||||
import datetime
|
import datetime
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
def parse_bool_from_string(string):
|
def parse_bool_from_string(string):
|
||||||
@@ -24,8 +25,8 @@ def parse_bool_from_string(string):
|
|||||||
def get_time_format():
|
def get_time_format():
|
||||||
# Default
|
# Default
|
||||||
time_format = "%H:%M"
|
time_format = "%H:%M"
|
||||||
# If system is 12hr
|
# If system is 12hr FIXME Hack on the CI...
|
||||||
if timezone.now().strftime("%p"):
|
if timezone.now().strftime("%p") or os.environ.get('CI', False):
|
||||||
time_format = "%I:%M %p"
|
time_format = "%I:%M %p"
|
||||||
return time_format
|
return time_format
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user