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

Timezone error occuring in PHP 5.3 #3

Open
hikaru-shindo opened this issue Dec 22, 2010 · 1 comment
Open

Timezone error occuring in PHP 5.3 #3

hikaru-shindo opened this issue Dec 22, 2010 · 1 comment
Labels

Comments

@hikaru-shindo
Copy link

Since 5.3 PHP claims warnings if no script timezone is set because it is not safe to rely on system settings.

You should add something like:

date_default_timezone_set('Europe/Berlin');

to the configuratiion

@messyo
Copy link
Owner

messyo commented Jun 13, 2011

Got a woraround, looking like this:
date_default_timezone_set(date_default_timezone_get());

Worked fine in early 5.3 Versions... (also still works for me). But more and more Users are experiencing this problem...

Still not sure if I should do more Workarround, as the only proper solution is to set timezone in php.ini...
(Also I still do not see why it is not safe to rely on the system settings... better than relying on nothing and causing PHP-Developers to vomit...)

I'll think about what i'm doing and am going back on this later...

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

No branches or pull requests

2 participants