[fpc-pascal] Local Time

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Feb 21 10:44:26 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).


Jonas



More information about the fpc-pascal mailing list