[fpc-devel] FPC V3.0.0 LocalTimeToUniversal() error
vfclists .
vfclists at gmail.com
Wed Jun 29 22:35:33 CEST 2016
On 29 June 2016 at 19:51, <wkitty42 at windstream.net> wrote:
> On 06/29/2016 12:09 PM, 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?
>>
>
>
> it doesn't look right over here, either...
>
> ./timetest.2.6.4
> Offset :240
> Local Time :14:50:18
> UTC :18:50:18
>
> ./timetest.3.0.0
> Offset :240
> Local Time :14:50:18
> UTC :10:50:18
>
> ./timetest.3.0.1
> Offset :240
> Local Time :14:50:18
> UTC :10:50:18
>
> ./timetest.3.1.1
> Offset :240
> Local Time :14:50:18
> UTC :18:50:18
>
> date --utc
> Wed Jun 29 18:50:18 UTC 2016
>
>
> --
> NOTE: No off-list assistance is given without prior approval.
> *Please keep mailing list traffic on the list* unless
> private contact is specifically requested and granted.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
Does this have to do with some questionable Microsoft formulae which
prompted this query -
http://stackoverflow.com/questions/2779948/subroutine-to-apply-daylight-bias-to-display-time-in-local-dst
?
--
Frank Church
=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160629/5c477472/attachment.html>
More information about the fpc-devel
mailing list