Bug #1421: gettimeofday() doesn't return timezone information

From: Date: Tue, 18 May 1999 12:36:03 +0000
Subject: Bug #1421: gettimeofday() doesn't return timezone information
Groups: php.dev 
Request: Send a blank email to php-dev+get-5758@lists.php.net to get a copy of this message
From: k@123.org Operating system: Solaris 2.x PHP version: 3.0.7 PHP Bug Type: Misbehaving function Bug description: gettimeofday() doesn't return timezone information When calling gettimeofday(), the "minuteswest" and "dsttime" components are filled with nonsense. This seems to be because Solaris is having a strange gettimeofday(3) function, the man page says: int gettimeofday(struct timeval *tp, void *); and The second argument to gettimeofday() and settimeofday() should be a pointer to NULL. Now, php's gettimeofday() can't tell about the timezone information. This happens on Solaris 2.5 and 2.7, I haven't checked other Solaris versions. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5758) next »