On 29/6/2016 7:09 μμ, Henry Vermaak wrote:
On Tue, Jun 28, 2016 at 10:56:30AM +0200, Michael Van Canneyt wrote:
FPC 3.0 indeed contains a bug. This has meanwhile been fixed.

If I compile the program with trunk, I get:

home: >fpc tt.pp
home: >./tt
Offset     :-120
Local Time :10:53:16
UTC        :08:53:16
home: >date --utc
Tue Jun 28 08:53:25 UTC 2016
home: >date Tue Jun 28 10:53:29 CEST 2016

So the output is correct in trunk, and the bug has been fixed. I expect the
fix to be in 3.0.2.
It doesn't look like this fix (r31356) has been merged into fixes_3_0,
or am I missing something?

i think you're right.

Tested with 3.0.x fixes branch in windows 10 :

C:\Users\thouli\Programming>fpc -iV
3.0.1

C:\Users\thouli\Programming>testLocaltime.exe
Offset     :-180
Local Time :19:25:35
UTC        :22:25:35

C:\Users\thouli\Programming>wmic path win32_currenttime
Day DayOfWeek Hour Milliseconds Minute Month Quarter Second WeekInMonth Year 29 3 19 25 6 2 39 5 2016

C:\Users\thouli\Programming>wmic path win32_utctime
Day DayOfWeek Hour Milliseconds Minute Month Quarter Second WeekInMonth Year 29 3 16 25 6 2 45 5 2016

regards,
--
Dimitrios Chr. Ioannidis
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to