PHP Warning: date(): It is not safe to rely on the system's timezone settings. - OS X
<p>I've been getting this warning every time I run a command in the terminal. It started with a recent update of all of my homebrew formulas and updating composer. I've had a look into the file it's referencing but not sure what to do here. </p>

<p>Full message </p>

<blockquote>
  <p>PHP Warning:  date(): 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. in /Users/ste/.composer/vendor/hoa/core/Parameter.php on line 158</p>
</blockquote>

<p>On line 158 of Parameter.php we have a function</p>

<pre><code>/**
 * Initialize constants.
 *
 * @return  void
 */
public static function initializeConstants()
{
    $c                = explode('…', date('d…j…N…w…z…W…m…n…Y…y…g…G…h…H…i…s…u…O…T…U'));
    self::$_constants = [
        'd' =&gt; $c[0],
        'j' =&gt; $c[1],
        'N' =&gt; $c[2],
        'w' =&gt; $c[3],
        'z' =&gt; $c[4],
        'W' =&gt; $c[5],
        'm' =&gt; $c[6],
        'n' =&gt; $c[7],
        'Y' =&gt; $c[8],
        'y' =&gt; $c[9],
        'g' =&gt; $c[10],
        'G' =&gt; $c[11],
        'h' =&gt; $c[12],
        'H' =&gt; $c[13],
        'i' =&gt; $c[14],
        's' =&gt; $c[15],
        'u' =&gt; $c[16],
        'O' =&gt; $c[17],
        'T' =&gt; $c[18],
        'U' =&gt; $c[19]
    ];

    return;
}'
</code></pre>

<p>I don't use PHP on OS X at all. My work is via VMs or MAMP the odd time so I'm not sure if one should be playing around with the core of Composer?</p>