X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FSettings.pm;h=4a60ebebf53354378a35390568121cc6cafcbb45;hb=fa041ffba328c26a58506d5ccabed93d29106473;hp=d6743fb1f6afebcc985d0ac201f775cd8574a07c;hpb=eb3bda37d084c0e6b13c97f88f06d5563c40d2fb;p=ndwebbie.git diff --git a/lib/NDWeb/Controller/Settings.pm b/lib/NDWeb/Controller/Settings.pm index d6743fb..4a60ebe 100644 --- a/lib/NDWeb/Controller/Settings.pm +++ b/lib/NDWeb/Controller/Settings.pm @@ -92,8 +92,7 @@ sub changeTimezone : Local { my ( $self, $c ) = @_; my $dbh = $c->model; - my $timezone = $c->req->param('category'); - $timezone .= '/' . $c->req->param('country') if $c->req->param('country'); + my $timezone = $c->req->param('timezone'); my $query = $dbh->prepare(q{UPDATE users SET timezone = $2 WHERE uid = $1}); eval{ $dbh->selectrow_array(q{SELECT NOW() AT TIME ZONE $1},undef,$timezone);