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

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

2016-06-30 Thread wkitty42
On 06/30/2016 06:01 AM, Henry Vermaak wrote: On Wed, Jun 29, 2016 at 05:09:54PM +0100, Henry Vermaak wrote: On Tue, Jun 28, 2016 at 10:56:30AM +0200, Michael Van Canneyt wrote: [...] 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 lo

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

2016-06-30 Thread Henry Vermaak
On Wed, Jun 29, 2016 at 05:09:54PM +0100, 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 > >

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

2016-06-29 Thread Denis Kozlov
On 28/06/2016 04:55, Russ Davies wrote: 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: FPC 3.0.0 produces incorrect results. FPC 3.0.1 r34023 and FPC 3.1.1 r34024 produce correct r

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

2016-06-29 Thread José Mejuto
El 29/06/2016 a las 22:35, vfclists . escribió: 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 Hello, Only Now() can be converted to UTC using

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

2016-06-29 Thread vfclists .
On 29 June 2016 at 19:51, 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.

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

2016-06-29 Thread wkitty42
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

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

2016-06-29 Thread Dimitrios Chr. Ioannidis
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

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

2016-06-29 Thread Henry Vermaak
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 --

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

2016-06-28 Thread Michael Van Canneyt
On Tue, 28 Jun 2016, wkitt...@windstream.net wrote: 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 c

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

2016-06-28 Thread wkitty42
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

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

2016-06-28 Thread wkitty42
On 06/27/2016 11:55 PM, Russ Davies wrote: 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: i get the same over here... Comparing dateutil.inc for both versions, in functions Universa

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

2016-06-28 Thread LacaK
Dňa 28.6.2016 o 9:18 Michael Van Canneyt napísal(a): On Tue, 28 Jun 2016, Russ Davies wrote: 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 Local

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

2016-06-28 Thread Michael Van Canneyt
On Tue, 28 Jun 2016, Russ Davies wrote: 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('

[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