http://www.perlmonks.org?node_id=122055

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

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

      <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;
(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.

    -Blake