Skip to content

Commit 586ff49

Browse files
committed
try harder
1 parent 3e51eb2 commit 586ff49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RestSharp/Extensions/StringExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ private static DateTime ParseFormattedDate(string input, CultureInfo culture)
157157
return date;
158158
}
159159

160+
if (DateTime.TryParse(input, culture, DateTimeStyles.None, out date))
161+
{
162+
return date;
163+
}
164+
160165
return default(DateTime);
161166
}
162167

0 commit comments

Comments
 (0)