mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
ParseDateTimeGoLang: normalize spaces first (#700)
This commit is contained in:
@@ -202,6 +202,7 @@ namespace Jackett.Utils
|
|||||||
// converts a date/time string to a DateTime object using a GoLang layout
|
// converts a date/time string to a DateTime object using a GoLang layout
|
||||||
public static DateTime ParseDateTimeGoLang(string date, string layout)
|
public static DateTime ParseDateTimeGoLang(string date, string layout)
|
||||||
{
|
{
|
||||||
|
date = ParseUtil.NormalizeSpace(date);
|
||||||
var pattern = layout;
|
var pattern = layout;
|
||||||
|
|
||||||
// year
|
// year
|
||||||
|
Reference in New Issue
Block a user