diff --git a/modules/bbstools.py b/modules/bbstools.py index fe62afa..e7c204b 100644 --- a/modules/bbstools.py +++ b/modules/bbstools.py @@ -97,7 +97,7 @@ def bbs_delete_message(messageID = 0, fromNode = 0): def bbs_post_message(subject, message, fromNode, threadID=0, replytoID=0): # post a message to the bbsdb - now = today.strftime('%Y-%m-%d %H:%M:%S') + now = datetime.now().strftime('%Y-%m-%d %H:%M:%S') thread = threadID replyto = replytoID # post a message to the bbsdb and assign a messageID diff --git a/modules/locationdata.py b/modules/locationdata.py index 7677b60..6740b5d 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -756,7 +756,7 @@ def get_nws_marine(zone, days=3): marine_pz_data = marine_pz_data.text #validate data - todayDate = today.strftime("%Y%m%d") + todayDate = datetime.now().strftime("%Y%m%d") if marine_pz_data.startswith("Expires:"): expires = marine_pz_data.split(";;")[0].split(":")[1] expires_date = expires[:8]