Skip to content

Commit

Permalink
Fix timezone shift not applied for start time for live URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
phunkyfish committed Feb 13, 2024
1 parent 43c350d commit 55185db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/iptvsimple/CatchupController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 55185db

Please sign in to comment.