Project

General

Profile

Support #5120

Updated by Constantin Asofiei over 3 years ago

Working on Json getDate/Datetime the @date.parseIsoDate@ method is being used to parse the ISO formatted string back to a date. However, an invalid date string - invalid month/day - in 4GL will throw error while given the @LENIENT@ resolver used in FWD will happily resolve that to a 'valid' date. Aka 2020-15-15 will return 2021-03-15, our tests shows error #80 should be thrown because the month is invalid.

Since in 4GL there isn't any from-iso-date function it's not clear if this method is the one to be fixed or we need something else for parsing dates in json (xml as well probably), the method is being called from a bunch of other places like rest and persist packages so maybe the current 'LENIENT' resolver was used in purpose and the method should stay as-is.

Looks like Constantin added those methods so will just make this a direct call :)

Thanks

Back