will be make year 2000
This commit is contained in:
SpudGunMan
2025-10-20 09:54:25 -07:00
parent d01f143adf
commit 2b420022f9
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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]