update dates

This commit is contained in:
Luke Pulverenti 2015-08-11 14:39:12 -04:00
parent 881fcf2434
commit 3b4be8f8be

View File

@ -65,6 +65,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings.Emby
if (!string.IsNullOrWhiteSpace(info.listDateTime))
{
program.StartDate = DateTime.ParseExact(info.listDateTime, "yyyy'-'MM'-'dd' 'HH':'mm':'ss", CultureInfo.InvariantCulture);
program.StartDate = DateTime.SpecifyKind(program.StartDate, DateTimeKind.Utc);
program.EndDate = program.StartDate.AddMinutes(info.duration);
}