Add back time format override

This commit is contained in:
2021-01-24 21:25:07 +00:00
parent fa8f117339
commit 6dba3ea86d
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Setup Chromedriver
run: |
export LANGUAGE=en_GB.UTF-8
wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
export PATH=$PATH:$(pwd)

View File

@@ -1,5 +1,6 @@
from pypom import Region
from django.utils import timezone
from django.conf import settings
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.remote.webelement import WebElement
@@ -26,7 +27,7 @@ def get_time_format():
# Default
time_format = "%H:%M"
# If system is 12hr
if timezone.now().strftime("%p"):
if timezone.now().strftime("%p") or settings.CI:
time_format = "%I:%M %p"
return time_format