src/cm/templates/site/macros/timezone.html
author raph
Tue, 16 Feb 2010 09:20:12 +0900
changeset 189 3cebfa984ece
parent 0 40c8f766c9b8
permissions -rw-r--r--
i18n no compile

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