GithubHelp home page GithubHelp logo

Timezone Issue about pico HOT 8 CLOSED

picocms avatar picocms commented on August 17, 2024
Timezone Issue

from pico.

Comments (8)

myhonor16 avatar myhonor16 commented on August 17, 2024

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

from pico.

fuzzyfox avatar fuzzyfox commented on August 17, 2024

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.

andrewjomelia avatar andrewjomelia commented on August 17, 2024

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.

jgnmoose avatar jgnmoose commented on August 17, 2024

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.

dav-m85 avatar dav-m85 commented on August 17, 2024

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

from pico.

theshka avatar theshka commented on August 17, 2024

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.

dav-m85 avatar dav-m85 commented on August 17, 2024

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

from pico.

theshka avatar theshka commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.