[Pdns-dev] SOA auto calculation for LDAP backend

bert hubert bert.hubert at netherlabs.nl
Sun Nov 12 20:33:39 CET 2006


On Sun, Nov 12, 2006 at 07:27:52PM +0100, Norbert Sendetzky wrote:

> > +		// we need UTC time for timestamps
> > +		setenv( "TZ", "", 1 ); tzset();
> Maybe it's acceptable to use local timezone and live with the +/- 12h 
> difference to UTC. I think SOA autocalculation tolerates this if the pdns 
> server are not distributed over different time zones with one source. Or do 
> you have a better solution in mind?

There must be better ways to get a UTC timestamp than to change the global
TZ variable. See man gmtime perhaps.
	
	Bert

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services


More information about the Pdns-dev mailing list