diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-19 21:40:06 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-19 21:40:06 +0200 |
| commit | cfa751fc97893276abfa7b518265835d788af374 (patch) | |
| tree | e81c11e1bedffc65cb31a9a8568b847014a4e949 /sb_builder | |
| parent | fc02ae2b562a3c608b41302d84d69b29415b927c (diff) | |
| download | sb-builder-cfa751fc97893276abfa7b518265835d788af374.tar.gz sb-builder-cfa751fc97893276abfa7b518265835d788af374.zip | |
All GUI dates go through fmt_time; switch it to the Italian order with
the year, and use it for the Dashboard's "stale since" too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'sb_builder')
| -rw-r--r-- | sb_builder/dashboard.py | 2 | ||||
| -rw-r--r-- | sb_builder/fmt.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sb_builder/dashboard.py b/sb_builder/dashboard.py index a8de823..5dee453 100644 --- a/sb_builder/dashboard.py +++ b/sb_builder/dashboard.py @@ -385,4 +385,4 @@ class Dashboard(QWidget): for card in self.cards(): card.setEnabled(since is None) self.stale.setText("" if since is None else - f"stale since {time.strftime('%H:%M', time.localtime(since))}") + f"stale since {fmt_time(since)}") diff --git a/sb_builder/fmt.py b/sb_builder/fmt.py index d43da2e..55a2d0d 100644 --- a/sb_builder/fmt.py +++ b/sb_builder/fmt.py @@ -47,7 +47,7 @@ def fmt_age(ts): def fmt_time(ts): - return time.strftime("%m-%d %H:%M", time.localtime(ts)) + return time.strftime("%d/%m/%Y %H:%M", time.localtime(ts)) # Italian order def job_title(j): |
