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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to