Skip to content

Commit 0fb063d

Browse files
authored
Remove vik.bme.hu date parsing workaround (#218)
1 parent 93f261a commit 0fb063d

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

StartSch/Modules/VikBmeHu/VikBmeHuPollJob.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,6 @@ private static (LocalDate Start, LocalDate? End) ParseInterval(ReadOnlySpan<char
250250

251251
private static LocalDate ParseDate(ReadOnlySpan<char> s)
252252
{
253-
s = s.Trim();
254-
255-
Span<char> s2 = stackalloc char[s.Length];
256-
s.CopyTo(s2);
257-
if (s2[^3] == ' ')
258-
s2[^3] = '0';
259-
260-
return DateOnly.ParseExact(s2, "yyyy. MMMM dd.", SharedUtils.HungarianCulture).ToLocalDate();
253+
return DateOnly.ParseExact(s.Trim(), "yyyy. MMMM d.", SharedUtils.HungarianCulture).ToLocalDate();
261254
}
262255
}

0 commit comments

Comments
 (0)