You are not logged in.
Pages: 1
I get wrong result if dates include time values.
ShowMessage(DateTimeToIso8601Text(Iso8601ToDateTime('1492-10-12T16:00:00')));
// results in '1492-10-13T08:00:00'The fractional time part is always added in Iso8601ToDateTimePUtf8CharVar but should be subtracted if the date is a negative number.
Offline
Values before TDateTime = 0 are just not supported.
In that case you might want to add an assert (or other check/exception) for that ?
(That would be the easiest)
Maybe someone can suggest a patch for TDateTime < 0 if needed and accepted.
Offline
Pages: 1