1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 17:47:08 +00:00

Fix: Sorting on grids will now be ordered properly regardless of user's date format.

This commit is contained in:
Mark McDowall 2012-02-14 11:14:57 -08:00
parent 102ad8d3cf
commit 830eab57aa

View file

@ -46,7 +46,7 @@ private List<UpcomingEpisodeModel> GetUpcomingEpisodeModels(List<Episode> episod
Overview = u.Overview, Overview = u.Overview,
AirDateTime = GetDateTime(u.AirDate.Value, u.Series.AirTimes), AirDateTime = GetDateTime(u.AirDate.Value, u.Series.AirTimes),
AirDate = u.AirDate.Value.ToBestDateString(), AirDate = u.AirDate.Value.ToBestDateString(),
AirTime = String.IsNullOrEmpty(u.Series.AirTimes) ? "?" : Convert.ToDateTime(u.Series.AirTimes).ToString("MM/dd/yyyy"), AirTime = String.IsNullOrEmpty(u.Series.AirTimes) ? "?" : Convert.ToDateTime(u.Series.AirTimes).ToShortTimeString(),
Status = u.Status.ToString() Status = u.Status.ToString()
}).OrderBy(e => e.AirDateTime).ToList(); }).OrderBy(e => e.AirDateTime).ToList();
} }