Skip to content

Commit c05ac13

Browse files
committed
utc changes
1 parent 1f4aa68 commit c05ac13

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/iothub_e2e/aio/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def brand_new_client(device_identity, client_kwargs, service_helper, devic
7070
# Keep this here. It is useful to see this info inside the inside devops pipeline test failures.
7171
logger.info(
7272
"Connecting device_id={}, module_id={}, to hub={} at {} (UTC)".format(
73-
device_id, module_id, test_env.IOTHUB_HOSTNAME, datetime.datetime.utcnow()
73+
device_id, module_id, test_env.IOTHUB_HOSTNAME, datetime.datetime.now(datetime.UTC)
7474
)
7575
)
7676

tests/e2e/iothub_e2e/sync/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def brand_new_client(device_identity, client_kwargs, service_helper, device_id,
2020
# Keep this here. It is useful to see this info inside the inside devops pipeline test failures.
2121
logger.info(
2222
"Connecting device_id={}, module_id={}, to hub={} at {} (UTC)".format(
23-
device_id, module_id, test_env.IOTHUB_HOSTNAME, datetime.datetime.utcnow()
23+
device_id, module_id, test_env.IOTHUB_HOSTNAME, datetime.datetime.now(datetime.UTC)
2424
)
2525
)
2626

0 commit comments

Comments
 (0)