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

[solved] date.timezone setting and validity


Go to End


3 Posts   1280 Views

Avatar
imsomagic

Community Member, 6 Posts

13 October 2014 at 7:33am

I'm trying to install silverstripe, and I got this error date.timezone setting and validity!

What I've done :

in php.ini :
;date.timezone = America/Toronto

Didnt work, so I did too... in .htaccess, I've had this 2 lines on the top :
### set time zone ###
php_value data.timezone America/Toronto

And, nothing seem to work...

Avatar
camfindlay

Forum Moderator, 267 Posts

13 October 2014 at 10:28am

Edited: 13/10/2014 10:28am

Hey, make sure to remove the ; character in front of the date.timezone in the php.ini - this is a comment character, if it's there php will be ignoring your config. Also ensure you are editing the correct php.ini file (sometimes there is a separate one for the command line use of PHP). To test, make a php file in your webroot, add the code.

<?php
phpinfo();

Save the file as something like "phpinfo.php" then visit in the browser, look for the "Loaded Configuration File" value which will tell you the correct config it's using (I've been caught out on this a couple of times... you live and learn).

Hope that helps :)

Avatar
imsomagic

Community Member, 6 Posts

14 October 2014 at 1:39am

Thank you so much, everything work now!!!