mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #108] date_default_timezone_get() error #36
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Aug 27, 2012).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/108
I have recently run the composer update and got the following error:
date_default_timezone_get(): 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ...vendor/monolog/monolog/src/Monolog/Logger.php line 112
@stof commented on GitHub (Aug 27, 2012):
This is absolutely not a bug in composer but in your PHP config: http://fr.php.net/date_default_timezone_get
@Seldaek commented on GitHub (Aug 28, 2012):
Yup sorry but we can't help here, you need to set up your timezone in php.ini
@ghost commented on GitHub (Aug 28, 2012):
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?
@stof commented on GitHub (Aug 28, 2012):
check that it is really the php.ini file which is used when the code was run.
@ghost commented on GitHub (Aug 28, 2012):
I upgraded to the newest MAMP and it works now.Thanks.
@FilipDA commented on GitHub (Jan 26, 2013):
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).
@karol-haltenberger commented on GitHub (Feb 21, 2014):
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