Skip to content

Commit

Permalink
Add new DateTime format - yyyy-MM-dd'T'HH:mm:ss.ffffffK (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltouro and Your Name authored Sep 16, 2024
1 parent 4b0847d commit 499e542
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Elastic.CommonSchema/PropDispatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ private static bool TrySetDateTimeOffset(object value, out DateTimeOffset d)
var formats = new[]
{
"yyyy-MM-ddTHH:mm:ss.FFFK",
"yyyy-MM-dd'T'HH:mm:ss.FFFK"
"yyyy-MM-dd'T'HH:mm:ss.FFFK",
"yyyy-MM-dd'T'HH:mm:ss.ffffffK"
};
d = DateTimeOffset.ParseExact(s, formats, CultureInfo.InvariantCulture, DateTimeStyles.None);
return true;
Expand Down

0 comments on commit 499e542

Please sign in to comment.