Failed to parse time string at position 41 (i): Double timezone specification
<p>I'm using the jquery <a href="https://github.com/filamentgroup/jQuery-UI-Date-Range-Picker" rel="nofollow">daterangepicker</a>, which in turn uses the jQuery <a href="http://jqueryui.com/datepicker/" rel="nofollow">datapicker</a>.</p>

<p>My Ubuntu system works fine. The browser is sending a parseable string:</p>

<pre><code>$dateStarted = new \DateTime($post['startDate']); // Thu Nov 15 2012 00:00:00 GMT-0700 (MST)
print_r($dateStarted);
</code></pre>

<p>Outputs:</p>

<pre><code>DateTime Object
(
    [date] =&gt; 2012-11-15 00:00:00
    [timezone_type] =&gt; 1
    [timezone] =&gt; -07:00
)
</code></pre>

<p>On our testers Windows system, the browser is sending an expanded timezone in the string:</p>

<pre><code>$dateStarted = new \DateTime($post['startDate']); // Thu Nov 15 2012 00:00:00 GMT-0700 (Mountain Standard Time)
print_r($dateStarted);
</code></pre>

<p>Throws and exception:</p>

<pre><code>Exception: DateTime::__construct(): Failed to parse time string 
 (Thu Nov 15 2012 00:00:00 GMT-0700 (Mountain Standard Time)) 
 at position 41 (i): Double timezone specification
</code></pre>

<p>I've googled around and can't find any resources on this specific PHP error. </p>

<p>I'm "solving" this problem by striping out the bracketed text which returns the same results:</p>

<pre><code>$dateString = strstr($dateString, " (", true); // Thu Nov 15 2012 00:00:00 GMT-0700
</code></pre>

<p>This seems pretty bad to do and I'm looking for suggestions on how to do this properly.</p>
