Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: User settings/timezone

by tommyw (Hermit)
on Oct 30, 2001 at 16:31 UTC ( #122068=note: print w/replies, xml ) Need Help??


in reply to User settings/timezone

Just to expand on this, setting the timezone to UTC+0 from user settings results in the page being refreshed, with the timezone at the top showing correctly as UTC+0. But it doesn't seem to actually take: going back to my homenode, it's still out by an hour, and reentering user settings shows me back at UTC+1. My assumption is that the form processing code is redisplaying the submission values, but not actually writing them to the user database (in this case).

--
Tommy
Too stupid to live.
Too stubborn to die.

Replies are listed 'Best First'.
Re: Re: User settings/timezone
by $code or die (Deacon) on Oct 30, 2001 at 16:58 UTC
    <speculation>
    I am guessing that the form shows "UTC+0" after you submit because of CGI.pm's sticky variables.

    As to why it's not going into the database, perhaps there is a chunk of code that looks like:
    if ($USER->{timezone} != CGI::param('settimezone') && CGI::param('sett +imezone')) { # change user setting }
    the value for UTC+0 is the only one that would evalaute as false.

    Of course, this is just a guess wihout seeing the code. I'm not sure but I don't think that the timezone setting is in Everything core. I think it's a perlmonks add-on.
    </speculation>

    Simon Flack ($code or die)
    $,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
    =~y'_"' ';eval"die";print $_,lc substr$@,0,3;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://122068]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-12-02 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (17 votes). Check out past polls.

    Notices?