[fpc-devel] Problem with Now() and time changed by ntpd

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Nov 2 17:33:15 CET 2011


michael.vancanneyt at wisa.be schrieb:

> The call will not be merged. Instead, you can just add
> 
>  ReadTimezoneFile(GetTimezoneFile);
>  GetLocalTimezone(fptime);
> 
> to your code (and add units 'unix' and 'baseunix').

What will happen if these are called on other platforms, which don't 
have timezone files?

IMO a function (UpdateTimeZone?) should be added, that encapsulates 
these POSIX specific calls and dependencies, for use on all platforms.

DoDi




More information about the fpc-devel mailing list