Fix zero-padded day of month in Mastodon post

This commit is contained in:
Mark Eaton committed 2026-11-18 15:24:20 -05:00
1 parent 51b0094395
commit c27846229e
1 file changed
+1 -1
+1 -1
View File
@@ -113,7 +113,7 @@ def get_saints_for_today() -> list[dict]:
def format_mastodon_post(saint: dict) -> str: def format_mastodon_post(saint: dict) -> str:
"""Format a saint's information as a Mastodon post.""" """Format a saint's information as a Mastodon post."""
today = datetime.now() today = datetime.now()
date_str = today.strftime("%B %d") date_str = today.strftime("%B %-d")
lines = [ lines = [
f"{date_str}: the Feast of Saint {saint['name']}", f"{date_str}: the Feast of Saint {saint['name']}",