src/cm/templates/site/macros/timezone.html
changeset 0 40c8f766c9b8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/templates/site/macros/timezone.html	Mon Nov 23 15:14:29 2009 +0100
@@ -0,0 +1,18 @@
+<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>