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()