about summary refs log tree commit diff
path: root/src/ci/cpu-usage-over-time.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ci/cpu-usage-over-time.py')
-rwxr-xr-xsrc/ci/cpu-usage-over-time.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/cpu-usage-over-time.py b/src/ci/cpu-usage-over-time.py
index 3d9dc86734f..19a39f34953 100755
--- a/src/ci/cpu-usage-over-time.py
+++ b/src/ci/cpu-usage-over-time.py
@@ -170,7 +170,7 @@ print("Time,Idle")
 while True:
     time.sleep(1)
     next_state = State()
-    now = datetime.datetime.utcnow().isoformat()
+    now = datetime.datetime.now(datetime.timezone.utc).replace(tzinfo=None).isoformat()
     idle = next_state.idle_since(cur_state)
     print("%s,%s" % (now, idle))
     sys.stdout.flush()