Address code review feedback for consistency

Co-authored-by: MischaPanch <35432522+MischaPanch@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]andMischaPanch committed 2026-02-07 12:13:37 +00:00
1 parent 8c6fdda646
commit 373baef040
1 file changed
+2 -2
+2 -2
View File
@@ -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"))