X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=root%2Fsrc%2Fsettings%2Findex.tt2;h=8cafbf4890200404918ffe880fd707d3a62eff55;hb=27a84187a27390a65531888c0068a11f69f6d2cf;hp=d52509a1f49466f07d8496a15e7d558c15ae8157;hpb=15e271f8e65bfc35d311f9b9cad581e3a1c70def;p=ndwebbie.git diff --git a/root/src/settings/index.tt2 b/root/src/settings/index.tt2 index d52509a..8cafbf4 100644 --- a/root/src/settings/index.tt2 +++ b/root/src/settings/index.tt2 @@ -9,6 +9,14 @@
+
Discord ID + +
+
+
Email + +
+
Birthday YYYY-MM-DD: @@ -23,6 +31,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 +57,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 = $('