[fpc-devel] FPC V3.0.0 LocalTimeToUniversal() error
wkitty42 at windstream.net
wkitty42 at windstream.net
Tue Jun 28 10:48:56 CEST 2016
On 06/28/2016 03:18 AM, Michael Van Canneyt wrote:
> On Tue, 28 Jun 2016, Russ Davies wrote:
[...]
>> Comparing dateutil.inc for both versions, in functions UniversalTimeToLocal()
>> and LocalTimeToUniversal() the signs of the offsets have been changed
>
> Correct. This was in response to some bugreports. IMO the offset should be 120,
> not -120.
so GetLocalTimeOffset() is wrong and has been for a long time??
cat ~/development/fpc/2.6.4/rtl/unix/sysutils.pp
cat ~/development/fpc/3.0.0/rtl/unix/sysutils.pp
cat ~/development/fpc/fixes_3_0/rtl/unix/sysutils.pp
function GetLocalTimeOffset: Integer;
begin
Result := -Tzseconds div 60;
end;
--
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.
More information about the fpc-devel
mailing list