From 55185dbbe7c0db7825e0197286d499e69b097db8 Mon Sep 17 00:00:00 2001 From: phunkyfish Date: Mon, 12 Feb 2024 14:51:02 +0000 Subject: [PATCH] Fix timezone shift not applied for start time for live URLs --- src/iptvsimple/CatchupController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iptvsimple/CatchupController.cpp b/src/iptvsimple/CatchupController.cpp index 740fdf39..2c04a279 100644 --- a/src/iptvsimple/CatchupController.cpp +++ b/src/iptvsimple/CatchupController.cpp @@ -408,6 +408,8 @@ std::string FormatDateTime(time_t timeStart, time_t duration, const std::string std::string FormatDateTimeNowOnly(const std::string &urlFormatString, int timezoneShiftSecs, int timeStart, int duration) { std::string formattedUrl = urlFormatString; + + timeStart -= timezoneShiftSecs; const time_t timeNow = std::time(0) - timezoneShiftSecs; std::tm dateTimeNow = SafeLocaltime(timeNow);