Coder Social home page Coder Social logo

Comments (7)

stof avatar stof commented on July 18, 2024

This is absolutely not a bug in composer but in your PHP config: http://fr.php.net/date_default_timezone_get

from monolog.

Seldaek avatar Seldaek commented on July 18, 2024

Yup sorry but we can't help here, you need to set up your timezone in php.ini

from monolog.

 avatar commented on July 18, 2024

I'm using MAMP with php 5.3.6:

[Date]
; Defines the default timezone used by the date functions
; Will be changed by MAMP to system timezone
date.timezone = "America/Los_Angeles"

and I still get the error? any idea?

from monolog.

stof avatar stof commented on July 18, 2024

check that it is really the php.ini file which is used when the code was run.

from monolog.

 avatar commented on July 18, 2024

I upgraded to the newest MAMP and it works now.Thanks.

from monolog.

FilipDA avatar FilipDA commented on July 18, 2024

For people that get the error with a correct setting in php.ini.
Check the TZ Environment Variable. To set your timezone (Linux / UNIX), use the command line :
export TZ="Europe/Paris"
(edit your .bash_profile to make the TZ changes permanent).

from monolog.

karol-haltenberger avatar karol-haltenberger commented on July 18, 2024

composer does not run through the web server, but in the cli so if the two have a separate config file, timezone has to be set in the cli's php.ini

from monolog.

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.