MangelMaxime/Thoth

Thoth.Json.Giraffe parses UTC datetime to undefined datetime

Closed this issue · 3 comments

Hi,

when using the Thoth.Json.Giraffe serializer I always get datetime strings of format unspecified (2019-06-17T00:00:00) without the timezone specifier.
The requests sends the datetime string in utc format (2019-06-17T00:00:00Z).

I am using Thoth.Json.Giraffe version 2.1 and Thoth.Json.Net 3.4

Hello,

can you please provide a reproduction code? So I can add it to the tests and see what is happening.

While trying to create a reproduction example I noticed, everything works correct in a fsx file using the same dll. So I cleaned my bin and obj directory in my app and now it works correct.
So it seems like it was a bug in the version I used before updating.

Thanks for your fast response @MangelMaxime

@christoph-feb22 Thank you for trying to reproduce and happy that it's fixed :)