From 47eaae9edc8d44fd064753a15f9e6d522f66a9e1 Mon Sep 17 00:00:00 2001 From: SpaceSaver <60277022+SpaceSaver@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:25:23 -0500 Subject: [PATCH] Enable viewing the date for expiry --- demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo.py b/demo.py index de5fb0f..60eb440 100644 --- a/demo.py +++ b/demo.py @@ -88,7 +88,7 @@ async def main(args: argparse.Namespace): expiration = None # Format time as HH:MM:SS PM/AM EST/EDT (X minutes from now) - expire_msg = lambda expiration: f"Number registration is valid until {str(expiration.astimezone().strftime('%I:%M:%S %p %Z'))} ({str(int((expiration - datetime.datetime.now(datetime.timezone.utc)).total_seconds()/60))} minutes from now)" + expire_msg = lambda expiration: f"Number registration is valid until {str(expiration.astimezone().strftime('%x %I:%M:%S %p %Z'))} ({str(int((expiration - datetime.datetime.now(datetime.timezone.utc)).total_seconds()/60))} minutes from now)" email_user = None email_addr = None # For HACK below