From cde8116a664133f8e71dd0ee1fb5ddd40bb97f42 Mon Sep 17 00:00:00 2001 From: SpaceSaver Date: Thu, 16 Nov 2023 17:00:09 -0500 Subject: [PATCH] Fix reg_notify --- demo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo.py b/demo.py index 2262f5b..3847059 100644 --- a/demo.py +++ b/demo.py @@ -104,7 +104,8 @@ async def main(args: argparse.Namespace): CONFIG["users"] = [] 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('%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