Sunday, February 20, 2011

PHP 5.3 Date Timezone issue

I was recently trying to setup PHP on my development machine. I downloaded the php-5.3.5-Win32-VC6-x86.zip for Windows and started to manually configure PHP (to get a feel. You can ofcourse use something like XAMPP to get started quickly.)

Then I quickly executed some PHP scripts and found everything was running fine. I dumped some of the PHP samples I had and played around until one started complaining

It is not safe to rely on the system's timezone settings.

Little researching solved the issue. PHP 5.3 requires you to set date.timezone in php.ini file

e.g. date.timezone = Asia/Calcutta

http://nl3.php.net/manual/en/timezones.php

1 comment:

  1. Blackjack Rules | Casino Review | DRMCD
    The Blackjack table 아산 출장안마 in the Blackjack tables 부산광역 출장마사지 is a little different. It 이천 출장안마 is the most basic 의왕 출장마사지 blackjack game. In this example you have to learn the rules 안산 출장안마 and where

    ReplyDelete