I found the problem but I do not know how to solve it. The DateTimeToNative function exists in the ZDatasetUtils file.
Which has the following line
TDateTime (Buffer ^): = TimeStampToMSecs (TimeStamp);
If I put the following code
var
app2: comp;
...
app2: = TimeStampToMSecs (TimeStamp);
writeln (FloatToStr (app2));
I get the following values on windows
07/02/2019 21:42:20
floattostr: 63685258940708
and on the following macs
07/02/2019 22:14:33
floattostr: -9.22337203685478E18
I know that the two dates are different, but the fact that the value on the mac is negative leads me to think that there is a problem. Ideas on how to solve it?