Pages

Welcome to My Blog

This is to share my IT experience with friends all around the world.
I have been working in Linux Fedora Systems for more than 8 years. Its fun to share knowledge and learn..
As everyone knows when a problem arises in your systems "googling" is the way that many depend on..

All the posts here are my working experiences during my working life.. So you can count on it..

I have added the references where I got help in solving IT issues


Thursday, October 3, 2013

PHP Warning: date(): It is not safe - PHP Warning

I got this warning whenever my site was accessed. It is just a warning but error log is filled.I searched in the Internet and identified it can be simply rectified by changing the configurations at php.ini

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

By default it was commented and I have set to my time zone as follows

date.timezone = Asia/Colombo

The correct time zone values relevant to your location are listed here
http://www.php.net/manual/en/timezones.php

Good Reference
http://www.php.net/manual/en/timezones.php

No comments:

Post a Comment