Skip to content

Commit

Permalink
Set timezone to UTC as a sane default.
Browse files Browse the repository at this point in the history
Using EST was not a great default as that only works for a narrow region
of people (literally ;)).  Instead, setting it to UTC at least gives the
global community an expected standard to rely on (and it's what PHP
defaults to when you don't set it).
  • Loading branch information
nubs committed Jul 24, 2014
1 parent c08c5c2 commit 15f9fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ purpose of building PHP composer packages. It provides several key features:
* Composer bin directories are automatically included in `PATH`. Both a
relative `vendor/bin` directory, and the global `$COMPOSER_HOME/vendor/bin`
directory are included in the `PATH`.
* Timezone set to `UTC` by default to remove the warnings with PHP's date and
time functions. This can be overridden by updating
`/etc/php/conf.d/timezone.ini`.

## Usage
This library is useful with simple `composer.json`'s from the command line.
Expand Down
2 changes: 1 addition & 1 deletion timezone.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[Date]
date.timezone = America/New_York
date.timezone = UTC

0 comments on commit 15f9fd1

Please # to comment.