ROStructType.fromObject - DateTime

Hi

Using RODA .1571 for JavaScript (and Delphi - serverside)

A couple of days ago I’ve received ‘adjusted’ JS files based on the .1569 release. With these files I’m experiencing a strange behaviour of a datetime in the fromObject of a struct.

This happens in the RemObjects.UTIL.ISO8601toDateTime method. We use a JS Date variable.

Pls help asap.

Regards,

Filip.

Hi,

.1571
this method (RemObjects.SDK.ROStructType.prototype.fromObject) wasn’t changed for 2 years.

Can you test your code with .1559 and say if difference in processing is present, pls?

Hi Evgeny

We’ve tried it alreay with .1559 and had the same result.
The problem is in the ISO8601toDateTime method where the array isn’t filled completely.

Regards,
Filip

Hi,

the problem is your date isn’t in ISO8601 standard.

your date should be like 2023-11-10T14:03:53Z or 2023-11-10T07:03:53−07:00 and isn’t like Mon Sep 26 1955 …