[fpc-devel] FPC V3.0.0 LocalTimeToUniversal() error
Denis Kozlov
dezlov at gmail.com
Thu Jun 30 00:30:05 CEST 2016
On 28/06/2016 04:55, Russ Davies wrote:
> Hi,
>
> My local time zone is GMT +2, and have noticed that with V3.0.0, that
> the LocalTimeToUniversal() function is adding the offset instead of
> subtracting it:
FPC 3.0.0 produces incorrect results.
FPC 3.0.1 r34023 and FPC 3.1.1 r34024 produce correct results.
Tested on Windows 7.
FPC 2.6.4
Offset :-60
Local Time :23:06:27
UTC :22:06:27 (CORRECT)
FPC 3.0.0
Offset :-60
Local Time :23:07:03
UTC :00:07:03 (WRONG)
FPC 3.0.1 r34023
Offset :-60
Local Time :23:21:52
UTC :22:21:52 (CORRECT)
FPC 3.1.1 r34024
Offset :-60
Local Time :23:24:22
UTC :22:24:22 (CORRECT)
Regards,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160629/2ca83d23/attachment.html>
More information about the fpc-devel
mailing list