src/cm/templates/site/macros/timezone.html
author Production Moz <dev@sopinspace.com>
Tue, 31 May 2011 18:26:38 +0200
changeset 354 4c7feb67d4a0
parent 0 40c8f766c9b8
permissions -rw-r--r--
merge with changeset 352:7bc8d8bfe443

<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>