src/cm/templates/site/macros/timezone.html
author raph
Wed, 24 Mar 2010 16:19:07 +0100
changeset 229 f6ae685b3097
parent 0 40c8f766c9b8
permissions -rw-r--r--
add tracking HTML from configuration

<script type="text/javascript">
<!--
{% if tz_installed %}
    {% if tz %}
        var tz = '{{ tz }}';
    {% else %}
        $(function() {
            var d = new Date();
            var tz = -d.getTimezoneOffset()/60;
            /*tz = 'America/Chicago';*/
            $.post("{% url timezone_set %}", { tz: tz }, function(data){
                window.location = window.location;
            });
        })
    {% endif %}
{% endif %}
-->
</script>