mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +00:00
Another attempt at forcing the right locale on CI
This commit is contained in:
@@ -8,6 +8,8 @@ addons:
|
||||
|
||||
before_install:
|
||||
- export TZ=Europe/London
|
||||
- export LANG=en_GB.UTF-8
|
||||
- export LC_ALL=en_GB.UTF-8
|
||||
|
||||
install:
|
||||
- |
|
||||
|
||||
@@ -202,7 +202,7 @@ FORMAT_MODULE_PATH = 'PyRIGS.formats'
|
||||
|
||||
USE_I18N = True
|
||||
|
||||
USE_L10N = True
|
||||
USE_L10N = False
|
||||
|
||||
USE_TZ = True
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ def get_time_format():
|
||||
# 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"
|
||||
print(time_format)
|
||||
return time_format
|
||||
|
||||
|
||||
@@ -158,7 +157,6 @@ class DateTimePicker(Region):
|
||||
|
||||
date = value.date().strftime("%d%m%Y")
|
||||
time = value.time().strftime(get_time_format())
|
||||
print(time)
|
||||
|
||||
self.root.send_keys(date)
|
||||
self.root.send_keys(Keys.TAB)
|
||||
|
||||
Reference in New Issue
Block a user