From 5277051f51e0a4d08f4490279a7ecd6b7fe3adcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek?= Date: Thu, 4 Aug 2022 11:53:54 +0200 Subject: [PATCH] Fixed: commit date format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Valíček --- tests/lib/test_detected_commit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/lib/test_detected_commit.py b/tests/lib/test_detected_commit.py index e9a2b1f..1593013 100644 --- a/tests/lib/test_detected_commit.py +++ b/tests/lib/test_detected_commit.py @@ -1,5 +1,7 @@ import pytest from repo_cloner.lib import DetectedCommit +import os +import time @pytest.fixture @@ -40,6 +42,8 @@ def test_author(det): def test_date(det): + os.environ['TZ'] = 'Europe/Prague' + time.tzset() assert det.date == "04-08-2022, 11:20:38"