mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-18 05:52:15 +00:00
Add back time format override
This commit is contained in:
1
.github/workflows/django.yml
vendored
1
.github/workflows/django.yml
vendored
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user