Skip to content

Commit

Permalink
convert previously shown date to settings timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
eddami committed Oct 4, 2023
1 parent 7bb376f commit b4e56b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XmlTvSharp/XmlTvReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ private static void HandlePreviouslyShownElement(XmlReader reader, ParsingContex
var date = reader.GetAttribute("start");
if (DateTimeOffset.TryParseExact(date, StartStopFormats,
CultureInfo.InvariantCulture,
DateTimeStyles.AdjustToUniversal, out var prevShownDate))
DateTimeStyles.AssumeUniversal, out var prevShownDate))
{
context.Programme.PreviouslyShownDate = prevShownDate;
context.Programme.PreviouslyShownDate = TimeZoneInfo.ConvertTime(prevShownDate, context.Settings.TimeZone);
}
}

Expand Down

0 comments on commit b4e56b2

Please sign in to comment.