From 8ee4095b3c9d0685f8f3a3ad5658b68c01ffb587 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 17 Jun 2021 16:04:04 +0200 Subject: [PATCH] Try to set timezone on the host. --- .github/workflows/modoboa.yml | 4 ++++ test_project/test_project/settings.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/modoboa.yml b/.github/workflows/modoboa.yml index bd3c26eca..9d6e8ddbe 100644 --- a/.github/workflows/modoboa.yml +++ b/.github/workflows/modoboa.yml @@ -74,6 +74,10 @@ jobs: pip install -r ldap-requirements.txt pip install -r test-requirements.txt python setup.py develop + - uses: szenius/set-timezone@v1.0 + - name: Set timezone + with: + timezoneLinux: Europe/Paris - name: Install postgres requirements if: ${{ matrix.database == 'postgres' }} run: | diff --git a/test_project/test_project/settings.py b/test_project/test_project/settings.py index f48ad6b15..d3c27a444 100644 --- a/test_project/test_project/settings.py +++ b/test_project/test_project/settings.py @@ -160,7 +160,7 @@ WSGI_APPLICATION = 'test_project.wsgi.application' LANGUAGE_CODE = 'en-us' -TIME_ZONE = 'Europe/Paris' +TIME_ZONE = 'UTC' USE_I18N = True