From 2b420022f980108c1e7e611a40e060bb3388d42f Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 20 Oct 2025 09:54:25 -0700 Subject: [PATCH] timeFix will be make year 2000 --- modules/bbstools.py | 2 +- modules/locationdata.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]