X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=root%2Fsrc%2Fsettings%2Findex.tt2;h=4e1c96f833135b08ff7f97a8236f46c53c7452d4;hb=8324b5418795fb16c583fea1c84237c195095579;hp=d52509a1f49466f07d8496a15e7d558c15ae8157;hpb=15e271f8e65bfc35d311f9b9cad581e3a1c70def;p=ndwebbie.git diff --git a/root/src/settings/index.tt2 b/root/src/settings/index.tt2 index d52509a..4e1c96f 100644 --- a/root/src/settings/index.tt2 +++ b/root/src/settings/index.tt2 @@ -23,6 +23,22 @@

+
Timezone + + +
+

+

+

Remember that GMT stays the same all year, so if you're in the UK you should pick Europe/London.

+
[%- site.stylesheets = ['ui/ui.datepicker.css'] %] @@ -33,7 +49,26 @@ $(document).ready(function(){ yearRange: "-80:+0", dateFormat: $.datepicker.ATOM, firstDay: 1, - showOn: "both", + showOn: "both" + }); + $("#tzcategory").change(function(){ + if ($(this).val() == 'GMT'){ + $("#timezone").val($(this).val()); + $("#tzcountry").empty(); + }else{ + $.get("/jsrpc/tzcountries/" + $(this).val(),function(xml){ + $("#tzcountry").empty(); + $("country",xml).each(function(i){ + var opt = $('