AUTO timezone isn't set when *autologon* plugins are used (ex: autologon, remember_me)
|Reported by:||ural||Owned by:|
|Severity:||normal||Keywords:||auto timezone autologon remember_me|
RC 0.3-stable+svn, timezone configured as AUTO for users.
I use *remember_me* plugin, where $argsuser? and $argspass? are set in 'authenticate' hook function.
After auto login timezone is set to UTC instead of OS setting. When timezone is configured explicitly in user settings, it is set correctly.
Analyzing the login logic, I found that timezone at login is controlled via a hidden input field _timezone with default value '_default_'.
$input_tzone = new html_hiddenfield(...)
then in program/include/rcmail.php ~537:
if ($_REQUEST_timezone? != '_default_')
When we use autologon, login page is skipped, '_default_' is not passed, and $_SESSIONtimezone? is overridden though it must be passed unchanged for AUTO timezones.
But don't know how fine this solution is for all.