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
@@ -41,7 +41,7 @@ namespace ErsatzTV.Core.Tests.Fakes
public DateTime GetLastWriteTime(string path) =>
Optional(_files.SingleOrDefault(f => f.Path == path))
.Map(f => f.LastWriteTime)
.IfNone(DateTime.MinValue);
.IfNone(SystemTime.MinValueUtc);
public bool IsLibraryPathAccessible(LibraryPath libraryPath) =>
_files.Any(f => f.Path.StartsWith(libraryPath.Path + Path.DirectorySeparatorChar));