Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date_default_timezone_get() #14

Closed
szymek opened this issue Aug 14, 2011 · 2 comments
Closed

date_default_timezone_get() #14

szymek opened this issue Aug 14, 2011 · 2 comments

Comments

@szymek
Copy link

szymek commented Aug 14, 2011

When I try do something in console I get:

[ErrorException]

Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /path/vendor/bundles/JMS/SerializerBundle/DependencyInjection/Configuration.php line 56

Mac OS X Lion / PHP 5.3.2

@schmittjoh
Copy link
Owner

The problem here is your PHP configuration. You need to uncomment the date.timezone directive in your php.ini.

@szymek
Copy link
Author

szymek commented Aug 14, 2011

OK. Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants