DateTime.ToString fixes for other countries

Fixed: Aired Date sorting on Missing
This commit is contained in:
Mark McDowall 2012-12-05 17:54:09 -08:00
parent 7bdc10c370
commit feaf63c758
6 changed files with 10 additions and 8 deletions

View file

@ -225,7 +225,7 @@ namespace NzbDrone.Web.Controllers
EpisodeCount = s.EpisodeCount,
EpisodeFileCount = s.EpisodeFileCount,
NextAiring = s.NextAiring == null ? String.Empty : s.NextAiring.Value.ToBestDateString(),
NextAiringSorter = s.NextAiring == null ? "12/31/9999" : s.NextAiring.Value.ToString("MM/dd/yyyy"),
NextAiringSorter = s.NextAiring == null ? new DateTime(9999, 12, 31).ToString("o", CultureInfo.InvariantCulture) : s.NextAiring.Value.ToString("o", CultureInfo.InvariantCulture),
AirTime = s.AirTimes,
CustomStartDate = s.CustomStartDate.HasValue ? s.CustomStartDate.Value.ToString("yyyy-MM-dd") : String.Empty
}).ToList();