[fpc-devel] FPC V3.0.0 LocalTimeToUniversal() error
Dimitrios Chr. Ioannidis
d.ioannidis at nephelae.eu
Wed Jun 29 18:27:56 CEST 2016
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
More information about the fpc-devel
mailing list