[fpc-pascal] Local Time
Carsten Bager
carsten at beas.dk
Thu Feb 21 11:01:43 CET 2008
>
> On 21 Feb 2008, at 09:15, Carsten Bager wrote:
>
> > My problem is that I get UTC time with the 220 compiler on the Arm
> > platform, when using gettime, now ---.
> > If i compile my program "lt" (local time) with the 220 compiler on
> > Linux 386
> > it works as I expects.
> > If I compile it to an Arm Linux it fails but if I use the 204
> > compiler it works.
>
> Under Linux, FPC tries to read the timezone info from (in this order)
>
> /etc/timezone
> /etc/localtime
> /usr/lib/zoneinfo/localtime
>
> I guess the Linux on your Arm device stores it in yet another place
> (or one of these files exist but does not contain the correct time
> zone info).
As I wrote in my first mail. The same program compiled with the 204
compiler works on the same Arm 9 platform.
So the program compiled with the 204 compiler finds the "/etc/localtime" file
and reads it.
Carsten
More information about the fpc-pascal
mailing list