From 5e68151a2dd2844e2870aadafc6b3de78e2ca876 Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Mon, 25 Nov 2024 14:40:30 -0600 Subject: [PATCH] updating to use timezone --- libnotices.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libnotices.py b/libnotices.py index 6565e1c..20512c9 100644 --- a/libnotices.py +++ b/libnotices.py @@ -6,6 +6,7 @@ import boto3 import json from json import JSONEncoder import logging +from zoneinfo import ZoneInfo logging.basicConfig(level=logging.INFO) class libaccount(dict): def __init__(self,name,barcode,pin): @@ -185,8 +186,8 @@ TH {border-width: 1px; padding: 3px; border-style: solid; border-color: black; b TD {border-width: 1px; padding: 3px; border-style: solid; border-color: black;} """ tableend="
" - -returntable="Last Updated" + str(datetime.datetime.now()) +timezone = ZoneInfo("America/Chicago") +returntable="Last Updated" + str(datetime.datetime.now(timezone)) returntable+='
Click Here to be able to refresh the list.' returntable+='
Click for the return list' returntable += """
-- 2.47.1