Re: [fpc-devel] FPC V3.0.0 LocalTimeToUniversal() error

2016-06-30 Thread Russ Davies
Thank you Marco, works perfectly. Russell ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

[fpc-devel] FPC V3.0.0 LocalTimeToUniversal() error

2016-06-27 Thread Russ Davies
Hi, My local time zone is GMT +2, and have noticed that with V3.0.0, that the LocalTimeToUniversal() function is adding the offset instead of subtracting it: uses sysutils, dateutils; var LocalTime: TDateTime; begin LocalTime := Now(); writeln('Offset :', GetLocalTimeOffset()); w