Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

User settings/timezone

by virtualsue (Vicar)
on Oct 30, 2001 at 14:56 UTC ( #122055=monkdiscuss: print w/replies, xml ) Need Help??

It appears that I can set my time zone to be anything but the correct one for my location: UTC+0. Attempts to do this are silently ignored. Perhaps this was broken when user settings was merged with new user settings (I assume that this has happened, since user settings contains the signature field again)?

Replies are listed 'Best First'.
(tye)Re: User settings/timezone
by tye (Sage) on Oct 30, 2001 at 20:41 UTC

    I've submitted a patch that fixes this. I have no idea when vroom might apply it nor who else might have the power to do so.

            - tye (but my friends call me "Tye")
Re: User settings/timezone
by tommyw (Hermit) on Oct 30, 2001 at 16:31 UTC

    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).

    Too stupid to live.
    Too stubborn to die.

      I am guessing that the form shows "UTC+0" after you submit because of'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.

      Simon Flack ($code or die)
      $,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
      =~y'_"' ';eval"die";print $_,lc substr$@,0,3;
(crazyinsomniac: IMPORTANT)Re: User settings/timezone
by crazyinsomniac (Prior) on Oct 31, 2001 at 13:16 UTC

      So are our personal nodelets safe from munging by user settings yet?

              - tye (but my friends call me "Tye")
Re: User settings/timezone
by blakem (Monsignor) on Oct 31, 2001 at 00:05 UTC
    That sounds a lot like a FALSE vs defined() bug.... Guess i'll go try to find it in the code base.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://122055]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2021-11-30 16:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found