aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_gui.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-19 21:40:06 +0200
committerDanilo M. <danix@danix.xyz>2026-10-19 21:40:06 +0200
commitcfa751fc97893276abfa7b518265835d788af374 (patch)
treee81c11e1bedffc65cb31a9a8568b847014a4e949 /tests/test_gui.py
parentfc02ae2b562a3c608b41302d84d69b29415b927c (diff)
downloadsb-builder-cfa751fc97893276abfa7b518265835d788af374.tar.gz
sb-builder-cfa751fc97893276abfa7b518265835d788af374.zip
Show dates as DD/MM/YYYY HH:MMHEADmaster
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 'tests/test_gui.py')
-rw-r--r--tests/test_gui.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py
index 4eb4211..0da4243 100644
--- a/tests/test_gui.py
+++ b/tests/test_gui.py
@@ -71,6 +71,13 @@ class ConfigTest(unittest.TestCase):
self.assertEqual(cfg, config.DEFAULTS)
+class FmtTest(unittest.TestCase):
+ def test_italian_date(self):
+ from sb_builder.fmt import fmt_time
+ ts = time.mktime((2026, 3, 7, 9, 5, 0, 0, 0, -1))
+ self.assertEqual(fmt_time(ts), "07/03/2026 09:05")
+
+
class ParseTest(unittest.TestCase):
def test_cases(self):
self.assertEqual(parse(255, b"", b""), (None, DOWN))