updating to use timezone #18
@ -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;}
|
||||
</style><table>"""
|
||||
tableend="</table> </body></html>"
|
||||
|
||||
returntable="Last Updated" + str(datetime.datetime.now())
|
||||
timezone = ZoneInfo("America/Chicago")
|
||||
returntable="Last Updated" + str(datetime.datetime.now(timezone))
|
||||
returntable+='<br>Click <a href="https://librarynotice.hamik.net">Here</a> to be able to refresh the list.'
|
||||
returntable+='<br>Click for the <a href="https://librarynotice.hamik.net/returnlist.html">return list</a>'
|
||||
returntable += """<form action="https://librarynotice.hamik.net/refresh.php">
|
||||
|
Loading…
x
Reference in New Issue
Block a user