Re: date problem

From: Date: Fri, 02 Nov 2001 01:16:00 +0000
Subject: Re: date problem
Groups: php.general 
Request: Send a blank email to php-general+get-73215@lists.php.net to get a copy of this message
date() shoudl give you the time in your timezone, gmdate() should give you the time in the GMT timezone. I would check your server and make sure the timezone is correctly set. -- Chris Lee lee@mediawaveonline.com "Steve Tsai" <steve@stevetsai.org> wrote in message news:none... > For reference: > OS: OpenBSD 2.9 > Web Server: Apache1.3.19 > PHP Version: 4.0.6 > > My problem is that date() and all the other time functions return GMT instead > of localtime. system("date") returns the correct localtime. Those functions > used to return localtime since GMT. The problem seems to have started after > daylight savings time changed. I hope someone has an idea of what's wrong > and how to fix it. As for now, I'm adding time() - 3600 * 8 to all my > scripts right now. > > Steve

« previous php.general (#73215) next »