mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
DateTime.ToString fixes for other countries
Fixed: Aired Date sorting on Missing
This commit is contained in:
parent
7bdc10c370
commit
feaf63c758
6 changed files with 10 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Linq.Dynamic;
|
||||
using System.Web.Mvc;
|
||||
|
@ -45,7 +46,7 @@ namespace NzbDrone.Web.Controllers
|
|||
Quality = h.Quality.ToString(),
|
||||
IsProper = h.IsProper,
|
||||
Date = h.Date.ToString(),
|
||||
DateSorter = h.Date.ToString("MM/dd/yyyy h:mm:ss tt"),
|
||||
DateSorter = h.Date.ToString("o", CultureInfo.InvariantCulture),
|
||||
Indexer = h.Indexer,
|
||||
EpisodeId = h.EpisodeId,
|
||||
NzbInfoUrl = h.NzbInfoUrl,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
@ -34,8 +35,8 @@ namespace NzbDrone.Web.Controllers
|
|||
Overview = e.Overview,
|
||||
SeriesTitle = e.Series.Title,
|
||||
SeriesTitleSorter = SortHelper.SkipArticles(e.Series.Title),
|
||||
AirDate = e.AirDate.Value.ToString("MM/dd/yyyy"),
|
||||
AirDateString = e.AirDate.Value.ToBestDateString()
|
||||
AirDateSorter = e.AirDate.Value.ToString("o", CultureInfo.InvariantCulture),
|
||||
AirDate = e.AirDate.Value.ToBestDateString()
|
||||
});
|
||||
|
||||
JsConfig.IncludeNullValues = true;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue