src/cm/templates/site/macros/timezone.html
changeset 0 40c8f766c9b8
equal deleted inserted replaced
-1:000000000000 0:40c8f766c9b8
       
     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>