xyncro / chiron

JSON for F#
https://xyncro.tech/chiron
MIT License
173 stars 41 forks source link

DateTime should allow other formats #103

Open adz opened 4 years ago

adz commented 4 years ago

The following occurs when de-serializing "\"2019-11-29T04:00:32.234224Z\""

System.Exception: datetime

The problem appears to be that exactly 7 digits below seconds is expected.

Is there a workaround for this?

I'm unsure how to override DateTime de-serialization, which appears to be here: https://github.com/xyncro/chiron/blob/master/src/Chiron/Chiron.fs#L1598