Skip to content

Commit 2a12933

Browse files
authored
Use defined en-GB format for date parsing (#32)
1 parent 7325672 commit 2a12933

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/Delius.Parser/ParserConfig/Models

src/Delius.Parser/ParserConfig/Models/Field.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public string Parse(string text)
4444
else
4545
{
4646
var date = ParseDatetime(d);
47-
return date.ToString();
47+
return date.ToString(cultureInfo);
4848
}
4949
case FieldType.ShortDate:
5050
string sd = text.Substring(StartingPoint, Length).Replace("~", "");
@@ -55,7 +55,7 @@ public string Parse(string text)
5555
else
5656
{
5757
var date = ParseDate(sd);
58-
return date.ToString();
58+
return date.ToString(cultureInfo);
5959
}
6060
}
6161
throw new ApplicationException("Unknown field type: " + Type);

0 commit comments

Comments
 (0)