On Mon, 15 Nov 2004 16:04:46 +0100 Vladimir Zidar <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] || [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php