I get banned for wrong time when I compile and run PascalCoin. No problems when I run the precompiled version downloaded from Sourceforge.
I think ther is a bug in UTime.pas. There is a function:
Function DateTime2UnivDateTime(d:TDateTime):TDateTime;
begin
Result := UniversalTimeToLocal(d);
// Result := LocalTimeToUniversal(d);
end;
var
The name says it should return Universal time from local time, but it calls a Lazarus/Fpc function that converts universal time to local time. It seems wrong.
The call that is commented out seems to be the right one. But it looks like somebody perhaps has made a quick fix.
There is also another function:
Function UnivDateTime2LocalDateTime(d:TDateTime):TDateTime;
begin
// Result := UniversalTimeToLocal(d);
Result := LocalTimeToUniversal(d);
end;
It should return local time from universal time but calls a system function that does the opposite
I compile with Lazarus 1.6.4 and Fpc 3.0.2. My computers OS is Linux Mint ver. 18.1
Cheers
Published at Sat, 11 Mar 2017 20:06:54 +0000
[wpr5_ebay kw=”bitcoin” num=”1″ ebcat=”” cid=”5338043562″ lang=”en-US” country=”0″ sort=”bestmatch”]
By gilvalentine1227 on 2014-02-12 09:25:01