My PHP script is displaying the wrong time. For eg. the time on my system is 3:10 PM while the script shows 9:40 AM.
I am working on Windows XP. The server package is that of “yPortable WebServer”. Checking some other questions on this site I even made the following change => date.timezone = “Asia/Calcutta”, in the php.ini.dist and php.ini files. But still no change.
It’s a good idea to always set default timezone in your script when using date functions.