Another attempt at forcing the right locale on CI

This commit is contained in:
2020-05-27 18:01:55 -04:00
parent e1fd466f85
commit dd654cff22
3 changed files with 3 additions and 3 deletions

View File

@@ -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:
- |

View File

@@ -202,7 +202,7 @@ FORMAT_MODULE_PATH = 'PyRIGS.formats'
USE_I18N = True
USE_L10N = True
USE_L10N = False
USE_TZ = True

View File

@@ -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)