about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmmanuel Ferdman <emmanuelferdman@gmail.com>2025-05-14 08:41:30 -0700
committerEmmanuel Ferdman <emmanuelferdman@gmail.com>2025-05-14 08:41:30 -0700
commit754b06f97869253968e0d6abf8105d047c327b62 (patch)
tree02f71ea0eadf824631e766fa02246ef76774672f /src
parent414482f6a0d4e7290f614300581a0b55442552a3 (diff)
Migrate to modern datetime API
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Diffstat (limited to 'src')
-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()