Browse Source

insert unscheduled gaps as utc

pull/2588/head
Jason Dove 9 months ago
parent
commit
aff1beeb15
No known key found for this signature in database
  1. 8
      ErsatzTV.Application/Playouts/Commands/InsertPlayoutGapsHandler.cs

8
ErsatzTV.Application/Playouts/Commands/InsertPlayoutGapsHandler.cs

@ -24,8 +24,8 @@ public class InsertPlayoutGapsHandler(IDbContextFactory<TvContext> dbContextFact
PlayoutItem one = queue.Dequeue(); PlayoutItem one = queue.Dequeue();
PlayoutItem two = queue.Peek(); PlayoutItem two = queue.Peek();
DateTimeOffset start = one.FinishOffset; DateTime start = one.Finish;
DateTimeOffset finish = two.StartOffset; DateTime finish = two.Start;
if (start == finish) if (start == finish)
{ {
@ -35,8 +35,8 @@ public class InsertPlayoutGapsHandler(IDbContextFactory<TvContext> dbContextFact
var gap = new PlayoutGap var gap = new PlayoutGap
{ {
PlayoutId = request.PlayoutId, PlayoutId = request.PlayoutId,
Start = start.UtcDateTime, Start = start,
Finish = finish.UtcDateTime Finish = finish
}; };
toAdd.Add(gap); toAdd.Add(gap);

Loading…
Cancel
Save