mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 17:59:14 +00:00
Fixed: Issue preventing some users from using Womble's Index.
This commit is contained in:
parent
eb0c75061d
commit
47a225c264
1 changed files with 6 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.ServiceModel.Syndication;
|
||||
using System.Threading;
|
||||
using System.Xml;
|
||||
using NLog;
|
||||
|
||||
|
@ -60,7 +61,11 @@ public override string ReadString()
|
|||
logger.WarnException("Unable to parse Feed date " + dateVal, e);
|
||||
}
|
||||
|
||||
dateVal = parsedDate.ToString(CultureInfo.CurrentCulture.DateTimeFormat.RFC1123Pattern);
|
||||
var currentCulture = Thread.CurrentThread.CurrentCulture;
|
||||
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
|
||||
dateVal = parsedDate.ToString("ddd, dd MMM yyyy HH:mm:ss zzz");
|
||||
dateVal = dateVal.Remove(dateVal.LastIndexOf(':'), 1);
|
||||
Thread.CurrentThread.CurrentCulture = currentCulture;
|
||||
}
|
||||
|
||||
return dateVal;
|
||||
|
|
Loading…
Reference in a new issue