ParseUtil Cleanup

This commit is contained in:
Qstick
2021-11-28 16:47:16 -06:00
parent 9b9d2f2798
commit 2e103d6dba
4 changed files with 26 additions and 14 deletions

View File

@@ -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