title: Javascript on Mac (Safari) toLocaleTimeString() oddities
body: <p>We have a simple function the works out a duration, it works fine in every browser apart from Safari on a Mac (works in chrome on the mac, works on Safari on the PC)</p>
  
  <p>For example, </p>
  
  <pre><code>new Date().toLocaleTimeString() 
  </code></pre>
  
  <p>We expect this to give a time formatted like this:</p>
  
  <blockquote>
    <p>11:59:25</p>
  </blockquote>
  
  <p>However, on the Mac Safari we get this</p>
  
  <blockquote>
    <p>11:59:25 GMT+01:00</p>
  </blockquote>
  
  <p>Any calculations we do on these times are one hour out (its adding the hour onto the calculation)</p>
  
  <p>e.g.
  11:59:25 - 11:59:25 = 01:00:00 (should be 00:00:00)</p>
  
  <p>Any ideas?</p>
  
  <p>Why is it adding the time zone to the string? this caused us a little issue with our database</p>
  
  <p>Why is it adding an hour to the sting?</p>
  
  <p>Why just in that one bloody browser!</p>
  
  <p>Thanks for your time.</p>