From f07661a3c80ca7994de002df38c4ff57c8f4d424 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Fri, 31 Oct 2025 09:19:17 -0500 Subject: [PATCH] fix sequential schedule building across offsets --- CHANGELOG.md | 1 + ErsatzTV.Core/Scheduling/YamlScheduling/YamlPlayoutContext.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2dcdcbfd..76eed07e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix UI crash when editing block playout that has default deco - Fix playback failure when seeking content with certain DTS audio (e.g. DTS-HD MA) - Properly set explicit audio decoder on combined audio and video input file +- Fix building sequential schedules across a UTC offset change ## [25.8.0] - 2025-10-26 ### Added diff --git a/ErsatzTV.Core/Scheduling/YamlScheduling/YamlPlayoutContext.cs b/ErsatzTV.Core/Scheduling/YamlScheduling/YamlPlayoutContext.cs index a9749bb62..63e30f016 100644 --- a/ErsatzTV.Core/Scheduling/YamlScheduling/YamlPlayoutContext.cs +++ b/ErsatzTV.Core/Scheduling/YamlScheduling/YamlPlayoutContext.cs @@ -137,7 +137,7 @@ public class YamlPlayoutContext(Playout playout, YamlPlayoutDefinition definitio public void Reset(PlayoutAnchor anchor, DateTimeOffset start) { - CurrentTime = new DateTimeOffset(anchor.NextStart.ToLocalTime(), start.Offset); + CurrentTime = new DateTimeOffset(anchor.NextStart, TimeSpan.Zero).ToLocalTime(); if (string.IsNullOrWhiteSpace(anchor.Context)) {