Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13865 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76851 invoked by uid 1010); 15 Nov 2004 15:44:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76822 invoked from network); 15 Nov 2004 15:44:00 -0000 Received: from unknown (HELO smtp.unet.ru) (213.219.244.56) by pb1.pair.com with SMTP; 15 Nov 2004 15:44:00 -0000 Received: from host.phpclub.net by smtp.unet.ru (8.12.9/Unet) with ESMTP id iAFFhwPq026938 for ; Mon, 15 Nov 2004 18:43:59 +0300 (MSK) Received: from s17.hibet.ru by host.phpclub.net (8.12.6/Unet) with ESMTP id iAFFhw0q020874 for ; Mon, 15 Nov 2004 18:43:58 +0300 (MSK) Date: Mon, 15 Nov 2004 18:43:49 +0300 To: internals@lists.php.net Message-ID: <20041115184349.33bea1fb.tony2001@phpclub.net> In-Reply-To: <1100531086.4084.9.camel@mravojed> References: <1100531086.4084.9.camel@mravojed> X-Mailer: Sylpheed version 0.9.99 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Fix for php4 bug #30096 From: tony2001@phpclub.net (Antony Dovgal) On Mon, 15 Nov 2004 16:04:46 +0100 Vladimir Zidar wrote: > If anybody cares, > > gmmktime returning completly bogus results. It can be easly checked > out by manually setting TZ shell variable. > > Lets try it like this: > > TZ=GMT+1 php -r "echo gmmktime();" > > gives 1100292805 > > TZ=GMT+2 php -r "echo gmmktime();" > > gives 1100289207 > > TZ=GMT+3 php -r "echo gmmktime();" > > gives 1100285610 > > But it should return always the same time (ok, few seconds here and > there, needed to type each command..) no matter which timezone is set. > I wonder why it wasn't noticed before, cause CVS says it was introduced ages ago: http://cvs.php.net/co.php/php-src/ext/standard/datetime.c?r=1.8 http://cvs.php.net/diff.php/php-src/ext/standard/datetime.c?r1=1.7&r2=1.8&ty=u -- Wbr, Antony Dovgal aka tony2001 tony2001@phpclub.net || antony@dovgal.com