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);