Re: date() and wrong timezone (or time)
| From: | Jochem Maas | Date: | Thu, 07 Feb 2008 23:11:00 +0000 |
| Subject: | Re: date() and wrong timezone (or time) | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268912@lists.php.net to get a copy of this message | ||
Daniel Brown schreef:
On Feb 7, 2008 8:34 AM, Jochem Maas <jochem@iamjochem.com> wrote:most likely, personally I set it in code as required. I was reiterating what the author of the new datetime stuff has repeated on a number of occasions, namely that your application or php.ini file should be settingthe value to something suitable explicitly. how valid this actually is obviously open to question, besides date/time issues will probably be one of those horrid things that will keep on biting people in the *** no? calendars, timezones and everything related is just too finickity :)Martin Marques schreef:it should be set to something, so fix that.see what you have as the value for the date.timezone ini setting.I've already checked that, and it's not set.All other points being valid, Jochem, I disagree with this. I'venever forced a setting on any of my PHP installations, and so far (knock on wood) I've never had a problem. I think PHP does a fine job of reading the server time and zone.