[fpc-devel] TDateTime issue.

Marco van de Voort fpc at pascalprogramming.org
Mon Apr 1 16:19:15 CEST 2024


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ć
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20240401/70b1345d/attachment.htm>


More information about the fpc-devel mailing list