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 Issue #68

Closed
chrisalbon opened this issue Aug 21, 2013 · 8 comments
Closed

Timezone Issue #68

chrisalbon opened this issue Aug 21, 2013 · 8 comments

Comments

@chrisalbon
Copy link

Since installing Pico, I get this issue on the top of every page:

Warning: strtotime() [function.strtotime]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 166

Warning: date() [function.date]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 166

Warning: strtotime() [function.strtotime]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 166

Warning: date() [function.date]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 166

Warning: strtotime() [function.strtotime]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 234

Warning: date() [function.date]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 234

Warning: strtotime() [function.strtotime]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 234


Warning: date() [function.date]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 234

Warning: strtotime() [function.strtotime]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 234

Warning: date() [function.date]: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /hsphere/local/home/livenoma/writemorefaster.com/lib/pico.php on line 234
@myhonor16
Copy link

this has to do with the recent versions of php
just add date_default_timezone_set('US/Eastern'); to index.php

@fuzzyfox
Copy link

Surely its better to ensure that your php configuration is correct rather than try and force timzone changes in the code.

Check your php.ini file. Its pretty good to not tie timezones to applications where possible.

@andrewjomelia
Copy link

I encountered a similar issue that was resolved by revising my server timezone in php.ini. All other adjustments to the time can be made from that baseline.

@jgnmoose
Copy link

This stumped me for a bit until I read this thread. On OSX Mavericks you have to copy the php.ini.default and set the time zone.

sudo cp /etc/php.ini.default /etc/php.ini

Uncomment and set date.timezone

 date.timezone='America/Denver'

Restart apache

sudo apachectl restart

Everything was good to go after that.

@dav-m85
Copy link
Contributor

dav-m85 commented Apr 30, 2015

@theshka well I find a bit harsh to close all issues without explaining quickly why to the community. 👎

@theshka
Copy link
Collaborator

theshka commented Apr 30, 2015

Many of these threads are 2 years old with no new activity. In the interest of cleaning up I quickly reviewed the threads and closed any that I thought were resolved or abandoned. I will gladly reopen any issue or pull request anyone raises issue with.

Regarding this thread specifically, the config.php.template file now contains date_default_timezone_set('UTC'); and I figured this issue was resolved.

Thanks, I hope this clears up any confusion @dav-m85

@dav-m85
Copy link
Contributor

dav-m85 commented Apr 30, 2015

@theshka Just pointing this out. Anyway, thanks for the cleanup and making the repository live again 🎉

@theshka
Copy link
Collaborator

theshka commented Apr 30, 2015

I'm really glad to have the opportunity to help stimulate a new dialog regarding Pico. Your input is highly valuable and I've noticed your participation in many threads; equally glad to see you're still around @dav-m85 :)

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

No branches or pull requests

7 participants