<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I found the problem for the the wrong time.<br>
I checked /etc/localtime and this was ok, but there was also a file
/etc/timezone with a wrong entry !<br>
<br>
fpc seems to first checks the /etc/timezone and then /etc/localtime<br>
<br>
Kylix, and also all other programs i've tested do it in the different
order!<br>
<br>
br,<br>
Alex<br>
<br>
<br>
vince coen schrieb:
<blockquote cite="mid:200812041342.40361.vbcoen@btconnect.com"
type="cite">
<pre wrap="">Hi;
Have you checked what time zone you have set up?
V.
On Thursday 04 December 2008, you wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Valdas Jankūnas schrieb:
</pre>
<blockquote type="cite">
<pre wrap="">Alexander Bauer rašė:
</pre>
<blockquote type="cite">
<pre wrap="">I have a strange problem with fpc 2.2.2 on Ubuntu Linux.
The function Now(); did not return the right time ?!?
It returns the time UTC - 6 hours.
Any suggestions ?
br,
Alex
</pre>
</blockquote>
<pre wrap="">try GetTime or GetLocalTime from SysUtils unit.
</pre>
</blockquote>
<pre wrap="">It's always the same time. UTC - 6 hours.
But it's not a problem of fpc or the functions, it must be a problem of
the Linux Ditribution.
On Ubuntu 8.04 Desktop the time is correct.
I use a system based on Ubuntu Server 8.04 and get a wrong time.
Does someone know what system components are relevant for the time
functions ?
Perhaps the system i use has something missing.
Btw. the linux date command shows the correct time, of course.
Alex
_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>