Skip to content

Commit b181f2e

Browse files
committed
fix: Running test_insert_malformed_jdl on machines with a non-UTC timezone
1 parent 271a9d0 commit b181f2e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

diracx-routers/tests/jobs/test_query.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,8 @@ def test_insert_malformed_jdl(normal_user_client):
202202
minute=0,
203203
second=0,
204204
microsecond=123456,
205-
# astimezone call below adds the local tz
206-
# to this otherwise naive object
207-
tzinfo=None,
208-
).astimezone()
205+
tzinfo=timezone.utc,
206+
)
209207
)
210208
def test_insert_and_search_by_datetime(normal_user_client):
211209
"""Test inserting a job and then searching for it.

0 commit comments

Comments
 (0)