Fix zero-padded day of month in Mastodon post
This commit is contained in:
1 parent
51b0094395
commit
c27846229e
1 file changed
+1
-1
@@ -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']}",
|
||||||
|
|||||||
Reference in new issue
Block a user