How to set "date.timezone" option in php.ini

by

Please shareShare on Facebook2Share on Google+1Tweet about this on Twitter0Share on LinkedIn0Share on Reddit0Digg thisShare on StumbleUpon0Share on VKBuffer this page

Question : How to change the date.timezone value in PHP?



answer:

Open php.ini

sudo vi /etc/php5/apache2/php.ini

and  look  search

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


en date  time  zone  make  some thing :

date.timezone = "Europe/Amsterdam"

Now save and close and restart your apache.

/etc/init.d/apache2 restart


Is done !

{loadposition user9}

Related Articles By Tags:

{loadposition user1}