[fpc-devel] TDateTime issue.
Werner Pamler
werner.pamler at freenet.de
Mon Apr 1 17:23:14 CEST 2024
Am 01.04.2024 um 16:19 schrieb Marco van de Voort via fpc-devel:
>
>
> Op 01/04/2024 om 12:30 schreef Werner Pamler via fpc-devel:
>> Am 31.03.2024 um 11:55 schrieb Pascal Pype via fpc-devel:
>>> There seems to be a bug in the TDateTime data type. When the time
>>> difference between two TDateTime variables is just one millisecond, the
>>> compareDateTime function returns 0 (equality) rather than the expected
>>> -1 or 1 (different).
>>
>> It is fixed in FPC/main (probably in commit
>> 492a0ffcac7035e9f096e353db41bacabedcc91d), not yet in Fixes. Marco,
>> shouldn't this be back-ported?
>>
>>
>
> The below revision is marked as merged
>
> *492a0ffcac7035e9f096e353db41bacabedcc91d
> <https://gitlab.com/freepascal.org/fpc/source/-/commit/492a0ffcac7035e9f096e353db41bacabedcc91d>*
> michael Sun Jun 20 08:00:01 2021 r49517 -
>
> * Better precision for samedatetime. Issue ID 0039023
> <http://bugs.freepascal.org/view.php?id=39023>, patch by Zoran Vučenović
>
Yes, you are right. Now I see that it works, after updating my fixes
(which I should have done earlier).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20240401/8bfc5d61/attachment.htm>
More information about the fpc-devel
mailing list