| author | Yves-Marie Haussonne <ymh.work+github@gmail.com> |
| Fri, 09 May 2014 18:35:26 +0200 | |
| changeset 656 | a84519031134 |
| parent 0 | 40c8f766c9b8 |
| permissions | -rw-r--r-- |
| 0 | 1 |
<script type="text/javascript"> |
2 |
<!-- |
|
3 |
{% if tz_installed %} |
|
4 |
{% if tz %} |
|
5 |
var tz = '{{ tz }}'; |
|
6 |
{% else %} |
|
7 |
$(function() { |
|
8 |
var d = new Date(); |
|
9 |
var tz = -d.getTimezoneOffset()/60; |
|
10 |
/*tz = 'America/Chicago';*/ |
|
11 |
$.post("{% url timezone_set %}", { tz: tz }, function(data){ |
|
12 |
window.location = window.location; |
|
13 |
}); |
|
14 |
}) |
|
15 |
{% endif %} |
|
16 |
{% endif %} |
|
17 |
--> |
|
18 |
</script> |