From e59ed7c200e09b53779118106af6c2259c1d55a8 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Thu, 24 Apr 2025 15:44:51 +0300 Subject: [PATCH] fix timezone issue in monitor live streams --- app/library/DownloadQueue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/library/DownloadQueue.py b/app/library/DownloadQueue.py index 837f8360..214c5ffb 100644 --- a/app/library/DownloadQueue.py +++ b/app/library/DownloadQueue.py @@ -804,6 +804,7 @@ class DownloadQueue(metaclass=Singleton): continue starts_in = parsedate_to_datetime(item.info.live_in) + starts_in = starts_in.replace(tzinfo=UTC) if starts_in.tzinfo is None else starts_in.astimezone(UTC) if time_now < (starts_in + timedelta(minutes=1)): LOG.debug(f"Item '{item_ref}' is not yet live. will start in '{dt_delta(starts_in-time_now)}'.")