From c9001f86bf7bb31be6c83925c6eb9b21d5891954 Mon Sep 17 00:00:00 2001 From: Michal Domonkos Date: Thu, 6 Jun 2024 16:30:21 +0200 Subject: [PATCH] Use GMT time zone in faketime dates This ensures that the interpretation of date strings isn't subject to the test system's time zone. --- dnf-behave-tests/dnf/steps/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnf-behave-tests/dnf/steps/cmd.py b/dnf-behave-tests/dnf/steps/cmd.py index 03803ffd8..34fa0a2f2 100644 --- a/dnf-behave-tests/dnf/steps/cmd.py +++ b/dnf-behave-tests/dnf/steps/cmd.py @@ -63,7 +63,7 @@ def faketime(context, direction, when): return else: time = when - context.faketime = "faketime '%s' " % time + context.faketime = "faketime '%s GMT' " % time @behave.step("today is {when}")