Skip to content

Commit 2739cc4

Browse files
authored
Fix timezone handling in LastUpdate parameter
1 parent 13b0563 commit 2739cc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cybernotify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def fetch_live_data(session_id: str, tz: ZoneInfo) -> list[dict]:
122122
f"{BASE_URL}/LiveData/Select",
123123
params={
124124
"Session_ID": session_id,
125-
"LastUpdate": (datetime.now(tz=tz) - timedelta(seconds=3)).strftime("%Y-%m-%d %H:%M:%S"),
125+
"LastUpdate": (datetime.now() - timedelta(seconds=3)).strftime("%Y-%m-%d %H:%M:%S"),
126126
},
127127
timeout=30,
128128
)

0 commit comments

Comments
 (0)