From 72b1b9a96facae90107c4f9a503407c07fe4070e Mon Sep 17 00:00:00 2001 From: Kim Neunert Date: Tue, 21 May 2024 18:24:42 +0200 Subject: [PATCH] fix the UTC issue --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b2079ca06..66fb415fd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,9 @@ before_script: - python -V # Print out python version for debugging - apt update - apt install -y libusb-1.0-0-dev libudev-dev # usb-support in hidapi + # https://github.com/python-babel/babel/issues/990#issuecomment-1760326334 + - rm -f /etc/localtime + - ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime # This doesn't get cached in gitlab but we don't need it anyway for now: # - ./tests/install_noded.sh --debug --elements compile - pip3 install --upgrade virtualenv @@ -163,7 +166,10 @@ release_electron_linux_windows: # Only difference to default befor_script: (ToDo fix this) - python3 -m virtualenv --python=python3 .env - source .env/bin/activate - - TZ=UTC pip3 install -e ".[test]" # TZ=UTC because https://github.com/nektos/act/issues/1853 + # https://github.com/python-babel/babel/issues/990#issuecomment-1760326334 + - rm -f /etc/localtime + - ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime + - pip3 install -e ".[test]" # TZ=UTC because https://github.com/nektos/act/issues/1853 script: - echo "Releasing for ${CI_PROJECT_ROOT_NAMESPACE}" - export CI_PROJECT_ROOT_NAMESPACE # needed in the build-script to download the right windows-binary