mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
ParseUtil Cleanup
This commit is contained in:
@@ -121,7 +121,7 @@ namespace NzbDrone.Core.Parser
|
||||
{
|
||||
try
|
||||
{
|
||||
str = ParseUtil.NormalizeSpace(str);
|
||||
str = str.Trim();
|
||||
if (str.ToLower().Contains("now"))
|
||||
{
|
||||
return DateTime.UtcNow;
|
||||
@@ -254,7 +254,7 @@ namespace NzbDrone.Core.Parser
|
||||
// converts a date/time string to a DateTime object using a GoLang layout
|
||||
public static DateTime ParseDateTimeGoLang(string date, string layout)
|
||||
{
|
||||
date = ParseUtil.NormalizeSpace(date);
|
||||
date = date.Trim();
|
||||
var pattern = layout;
|
||||
|
||||
// year
|
||||
|
Reference in New Issue
Block a user