From 373baef0408779105b0403004c6291c454ec5991 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 12:13:37 +0000 Subject: [PATCH] Address code review feedback for consistency Co-authored-by: MischaPanch <35432522+MischaPanch@users.noreply.github.com> --- src/serena/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serena/dashboard.py b/src/serena/dashboard.py index 190f1b1d..0197a8bd 100644 --- a/src/serena/dashboard.py +++ b/src/serena/dashboard.py @@ -155,7 +155,7 @@ class SerenaDashboardAPI: # If SERENA_HOME doesn't exist yet, return today's date if not os.path.exists(serena_home): - today = datetime.now(tz=UTC) + today = datetime.now(UTC) return int(today.strftime("%Y%m%d")) # Get the creation/modification time of the SERENA_HOME directory @@ -163,7 +163,7 @@ class SerenaDashboardAPI: # Use st_ctime on Unix-like systems (change time, closest to creation time) # or st_mtime if ctime is not reliable creation_timestamp = stat_info.st_ctime - creation_date = datetime.fromtimestamp(creation_timestamp, tz=UTC) + creation_date = datetime.fromtimestamp(creation_timestamp, UTC) # Return as YYYYMMDD integer return int(creation_date.strftime("%Y%m%d"))