[fpc-devel] Problem with Now() and time changed by ntpd
zeljko
zeljko at holobit.net
Mon Oct 31 20:58:14 CET 2011
On Monday 31 of October 2011 20:47:07 Sven Barth wrote:
>
> fpgettimeofday uses exactly what it says on the tin: gettimeofday. See
> here: http://linux.die.net/man/2/gettimeofday
Yes, I've readed man page of gettimeofday already.
>
> The fp* functions in Linux by default call directly the kernel instead
> of going through libc, thus avoiding the dependency on that library.
that's ok, but afaik gettimeofday is deprecated.
>
> Maybe a possibilty should be implemented in unit Unix to reread the
> timezone file. This wouldn't solve your problem directly, but it would
> at least provide the ability to update the time zone information without
> restarting the application/service. The trigger would need to come from
> an external source though (maybe by checking that timezone database that
> was in the media some weeks ago).
Don't know what to do ... I must fix this asap somehow ... even with using my
own Now() implementation by calling libc ... don't know ... this pissed me off
totally.
zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20111031/b89d61fe/attachment.html>
More information about the fpc-devel
mailing list