From faf41dada97c94c467a011fea642a018e29aa1cc Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 4 Nov 2025 14:16:20 +0000 Subject: Fixed bug with logging in database --- database.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/database.py b/database.py index b80b548..300b224 100755 --- a/database.py +++ b/database.py @@ -28,12 +28,7 @@ class Database: commit (bool, optional): autocommit. Defaults to True. """ def get_date(stri): - # strip microseconds - stri = stri.split(",")[0] - try: - return datetime.datetime.strptime(stri, "%Y-%m-%d %H:%M:%S") - except ValueError: - return datetime.datetime.strptime(stri, "%b %d %Y %H:%M:%S") + return datetime.datetime.fromisoformat(stri) addFlag = False s = line.split("\t") -- cgit v1.2.3