[ardoJSON] Null date conversion issue

[ardoJSON] Null date conversion issue

Forge Component
Published on 24 Oct by Ricardo Silva
22 votes
Published on 24 Oct by Ricardo Silva
I'm using 
ardoJSON's 1.9 and trying to convert an entity which has a 'Date' field and its value is set to #1900-01-01#, null value in Outsystems Platform.
I expected the value converted to empty string, but it was converted to "00:00:00".

Hello Kuniyoshi-san,

Yes, that is currently the implemented behavior. Unfortunately at the level that ardoJSON works there is no information on whether the DateTime that is on the structure is a DateTime, a Date or a Time, so I have implemented some heuristics for detecting this, and the null date currently falls into the "time" heuristic.

I have just published version 1.9.2 of ardoJSON which fixes this behavior to the expected one.

Please let me know if you find any issue with it.

Best regards,
Ricardo Silva
Hi Ricardo san,

I've published the version of 1.9.2 and it works expectedly.
Thanks for your quick response! :)