title: Javascript users incorrect locale with date formatting
body: <p>In javascript I'm using <code>Date.toLocaleDateString</code> to format my dates in the user's locale.  While in theory it should work, it doesn't.</p>
  
  <p>I am located in the UK.  My computer is set to UK and my default language is set to en/gb in both system settings and the browser content settings.  Yet, Firefox always displays dates the US format.  Is there some trick I'm missing?</p>
  
  <p>The full code for formatting is this:</p>
  
  <pre><code>var timestamp = ...; //some value from ajax call
  var dt = new Date(timestamp);
  $('#audit-date').text(dt.toLocaleDateString());
  </code></pre>
  
  <p>In the UK for today's date I would expect to see <code>05/02/2014</code>, but I see <code>02/05/2014</code>, which is the US version of it.</p>