12-hour time

This commit is contained in:
Johnny Gear 2025-11-13 22:03:21 -06:00
parent 2b004d9553
commit b9388843cf

View file

@ -16,7 +16,7 @@ async def order_mastodon_post(session, orders_str, repeats, due_at):
post += orders_str + "\n\n" post += orders_str + "\n\n"
if repeats > 1: if repeats > 1:
post += f"These are the same orders from the last {repeats} days\n\n" post += f"These are the same orders from the last {repeats} days\n\n"
post += "Proof of compliance is due by " + due_at.strftime("%H:%M %p") post += "Proof of compliance is due by " + due_at.strftime("%I:%M %p")
m = Mastodon(session) m = Mastodon(session)
return await m.statusPost(post) return await m.statusPost(post)
@ -26,7 +26,7 @@ async def order_telegram_post(session, orders_str, repeats, due_at, m_url):
post += orders_str + "\n\n" post += orders_str + "\n\n"
if repeats > 1: if repeats > 1:
post += f"These are the same orders from the last {repeats} days\n\n" post += f"These are the same orders from the last {repeats} days\n\n"
post += "Proof of compliance is due by " + due_at.strftime("%H:%M %p") + "\n\n" post += "Proof of compliance is due by " + due_at.strftime("%I:%M %p") + "\n\n"
post += m_url post += m_url
t = Telegram(session) t = Telegram(session)