fix building playouts in timezones with positive offsets (#368)

This commit is contained in:
Jason Dove
2021-09-15 09:07:35 -05:00
committed by GitHub
parent e218ff9a6d
commit e718cb0faf
15 changed files with 30 additions and 18 deletions
+2 -2
View File
@@ -374,9 +374,9 @@ namespace ErsatzTV.Core.Scheduling
}
bool willNotFinishInTime =
currentTime <= durationFinish.IfNone(DateTime.MinValue) &&
currentTime <= durationFinish.IfNone(SystemTime.MinValueUtc) &&
currentTime + peekVersion.Duration >
durationFinish.IfNone(DateTime.MinValue);
durationFinish.IfNone(SystemTime.MinValueUtc);
if (willNotFinishInTime)
{
_logger.LogDebug(