From 6ed62ac3c2bb90e7beece44384d2c83feb5a6be0 Mon Sep 17 00:00:00 2001 From: jpt Date: Sat, 3 May 2025 18:42:49 -0500 Subject: [PATCH] zero pad dates --- src/tt/tui/modals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tt/tui/modals.py b/src/tt/tui/modals.py index 89805ee..cfcc127 100644 --- a/src/tt/tui/modals.py +++ b/src/tt/tui/modals.py @@ -256,7 +256,7 @@ class DateModal(ModalScreen): event.prevent_default() def action_select(self): - self.dismiss("-".join(str(p) for p in self.pieces)) + self.dismiss("-".join(f"{p:02d}" for p in self.pieces)) def action_cancel(self): self.app.pop_screen()