Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

date.timezone option in php.ini must be set in PHP 5.3.0+


Go to End


19 Posts   116159 Views

Avatar
tarcius

Community Member, 1 Post

5 May 2013 at 1:26am

You can also do this

edit .htaccess file in root folder

just add line at the end of content "php_value date.timezone {yourtimezone}"

like this

"php_value date.timezone Pacific/Auckland"

save upload and that's it...

It worked for me.

Avatar
Titu123

Community Member, 1 Post

25 November 2015 at 10:18pm

Hi,

I have solve the problem by adding php.ini file in root folder and in php.ini file you can add below info

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30
max_input_time = 60
memory_limit = 256M
upload_max_filesize = 100M
php_value max_input_time 120
date.timezone = Pacific/Auckland

Solve the issue

Avatar
Chanunc

Community Member, 1 Post

24 January 2016 at 2:55am

Hi,

I got the same correcting time zone problem and managed to fix it.
I'm using Mac OS X El capitan, Nginx, PHP-FPM, MySQL.
To correct PHP timezone, instead of php.ini, I set up this
/usr/local/etc/php/5.6/pool.d/www.conf
with
php_admin_value[date.timezone] = Europe/London
then restart PHP-FPM and Nginx.

Go to Top