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 [EMAIL PROTECTED] "Steve Tsai" <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]