From b39400f1c48df0378068cf9184c598d8d93e8b15 Mon Sep 17 00:00:00 2001 From: KoenigMjr <135820716+KoenigMjr@users.noreply.github.com> Date: Wed, 10 Jun 2026 09:03:06 +0200 Subject: [PATCH] [feat/wildcardtime]:Update {TIME} wildcard to use the client packet timestamp Use bwPacket timestamp for {TIME} wildcard instead of server time --- boswatch/wildcard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boswatch/wildcard.py b/boswatch/wildcard.py index edda224a..6b5226ab 100644 --- a/boswatch/wildcard.py +++ b/boswatch/wildcard.py @@ -10,7 +10,7 @@ by Bastian Schroll @file: wildcard.py -@date: 23.07.2025 +@date: 05.07.2026 @author: Bastian Schroll @description: Functions to replace wildcards in stings """ @@ -48,7 +48,7 @@ def replaceWildcards(message, bwPacket): "{BR}": "\r\n", "{LPAR}": "(", "{RPAR}": ")", - "{TIME}": time.strftime("%d.%m.%Y %H:%M:%S"), + "{TIME}": time.strftime("%d.%m.%Y %H:%M:%S", time.localtime(float(bwPacket.get("timestamp")))), # info wildcards # server