From dd654cff22793e8b1f275e234eac9d0cae989e18 Mon Sep 17 00:00:00 2001 From: Arona Date: Wed, 27 May 2020 18:01:55 -0400 Subject: [PATCH] Another attempt at forcing the right locale on CI --- .travis.yml | 2 ++ PyRIGS/settings.py | 2 +- PyRIGS/tests/regions.py | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index eaea5a88..56529c29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: - | diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py index 8164b221..6f15f6c3 100644 --- a/PyRIGS/settings.py +++ b/PyRIGS/settings.py @@ -202,7 +202,7 @@ FORMAT_MODULE_PATH = 'PyRIGS.formats' USE_I18N = True -USE_L10N = True +USE_L10N = False USE_TZ = True diff --git a/PyRIGS/tests/regions.py b/PyRIGS/tests/regions.py index eaf7885b..03977d98 100644 --- a/PyRIGS/tests/regions.py +++ b/PyRIGS/tests/regions.py @@ -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)