title: django 1.4 how to automatically get user's timezone from client
body: <p>I would like to know if there is a way to automatically retrieve user's timezone from client. Especially during login.</p>
  
  <p>I tried to add this in the login page (using <code>auth.login</code>):</p>
  
  <pre><code>{% get_current_timezone as TIME_ZONE %}
  </code></pre>
  
  <p>and then add this in the login form</p>
  
  <pre><code>&lt;input type="hidden" name="next" value="/redirect/?tz={{ TIME_ZONE }}"&gt;
  </code></pre>
  
  <p>but <code>tz</code> is always the timezone of the server.</p>