title: Cloudbees PHP date timezone
body: <p>I'm trying to build a PHP Symfony application on <a href="https://www.cloudbees.com/" rel="nofollow">Cloudbees</a> and when the composer try to warm up cache, it's getting the following warning and failing the build:</p>
  
  <blockquote>
    <p>Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are <em>required</em> 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.</p>
  </blockquote>
  
  <p>I'm using the following code, recommended by the cloudbees documentation, to use php 5.5 and set the php.ini file.</p>
  
  <pre><code>wget -q https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/php/use-php
  PHP_VERSION=5.5.16 . ./use-php
  curl -sS https://getcomposer.org/installer | php
  mkdir -p /tmp/php
  echo "date.timezone = 'America/New_York'" &gt; /tmp/php/php.ini
  export PHPRC=/tmp/php
  </code></pre>
  
  <p>I've did a "php -i" on the build stack and received this response:</p>
  
  <pre><code>PHP Version =&gt; 5.5.16
  
  System =&gt; Linux jenkins 3.9.4-1-mansion #2 SMP PREEMPT Thu Sep 19 16:54:20 UTC 2013 x86_64
  Build Date =&gt; Sep 15 2014 01:12:27
  Configure Command =&gt;  './configure'  '--prefix=/scratch/jenkins/php/php-5.5.16-x86_64' '--with-curl' '--with-openssl'
  Server API =&gt; Command Line Interface
  Virtual Directory Support =&gt; disabled
  Configuration File (php.ini) Path =&gt; /scratch/jenkins/php/php-5.5.16-x86_64/lib
  Loaded Configuration File =&gt; /tmp/php/php.ini
  Scan this dir for additional .ini files =&gt; (none)
  Additional .ini files parsed =&gt; (none)
  
  (...)
  
  date
  
  date/time support =&gt; enabled
  "Olson" Timezone Database Version =&gt; 2014.5
  Timezone Database =&gt; internal
  Default timezone =&gt; America/New_York
  
  Directive =&gt; Local Value =&gt; Master Value
  date.default_latitude =&gt; 31.7667 =&gt; 31.7667
  date.default_longitude =&gt; 35.2333 =&gt; 35.2333
  date.sunrise_zenith =&gt; 90.583333 =&gt; 90.583333
  date.sunset_zenith =&gt; 90.583333 =&gt; 90.583333
  date.timezone =&gt; America/New_York =&gt; America/New_York
  </code></pre>
  
  <p>Thanks for taking the time.</p>