Comments (8)
this has to do with the recent versions of php
just add date_default_timezone_set('US/Eastern');
to index.php
from pico.
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.
from pico.
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.
from pico.
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.
from pico.
@theshka well I find a bit harsh to close all issues without explaining quickly why to the community. 👎
from pico.
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
from pico.
@theshka Just pointing this out. Anyway, thanks for the cleanup and making the repository live again 🎉
from pico.
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 :)
from pico.
Related Issues (20)
- Pico 3.0: Param 'date_format' from config.yml.template leads to PHP Fatal Error HOT 2
- Reverse case sensitive declaration of meta attributes is confusing HOT 5
- Twig 2.x and YAML 3.x not supported HOT 3
- Visit counter HOT 24
- Reading Time HOT 2
- Best way to add script inside <head> HOT 4
- picocms.org is down right now HOT 3
- Nice Date filter HOT 3
- pre-bundled release: Getting "HTTP ERROR 500" HOT 7
- Support for Twig extensions? HOT 3
- cookbook issue HOT 8
- [draft ] Autoload extra stuff HOT 5
- [PLUGIN] XMPP: Post to PubSub [NOT CLOSED YET] HOT 6
- Probably a wrong logical operator HOT 2
- Question: How to use page yaml-header meta-data in php for a plugin? HOT 4
- weird display of date HOT 7
- simple comment system HOT 7
- PHP pages depth & offset HOT 2
- Pico Edit says "unmaintained - archived", HOT 2
- Pico project throwing an error template. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico.