diff --git a/tests/foreman/cli/test_remoteexecution.py b/tests/foreman/cli/test_remoteexecution.py index b0b6bef7aa..43b27d04c0 100644 --- a/tests/foreman/cli/test_remoteexecution.py +++ b/tests/foreman/cli/test_remoteexecution.py @@ -595,7 +595,7 @@ def test_positive_time_expressions(self, rex_contenthost, target_sat): """ client = rex_contenthost today = datetime.today() - hour = datetime.utcnow().hour + hour = datetime.now().hour last_day_of_month = monthrange(today.year, today.month)[1] # cronline uses https://github.com/floraison/fugit fugit_expressions = [