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.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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.
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
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.