[bugs] [Bug 1004] New -
bugs@bugs.horde.org
bugs@bugs.horde.org
Sun, 28 Jul 2002 22:28:33 -0300
http://bugs.horde.org/show_bug.cgi?id=1004
*** shadow/1004 Sun Jul 28 22:28:33 2002
--- shadow/1004.tmp.23931 Sun Jul 28 22:28:33 2002
***************
*** 0 ****
--- 1,48 ----
+ Bug#: 1004
+ Product: Horde
+ Version: 2.0 Stable
+ Platform: PHP Code
+ OS/Version: other
+ Status: NEW
+ Resolution:
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org
+ ReportedBy: desarrollo@arraialdajuda.com
+ URL:
+ Summary:
+
+ Its good idea that a last login show in a languages and timezone prefered
+
+ horde/imp-3.1/lib/IMP.php >> on line 298
+
+ /* Display user's last login time if requested. */
+ /* Optional UNIX date style: "D M j H:i:s T Y" */
+ if ($prefs->getValue('show_last_login')) {
+ /**** Bug One Solution -> Set the current language. *****/
+ if ($prefs->getValue('language') != '') {
+ $idioma = $prefs->getValue('language');
+ Lang::setLang($idioma);
+ }
+ /***** Fin Bug One Solution *****/
+ if (empty($last_login)) {
+ Horde::raiseMessage(_("Last login: Never"), HORDE_MESSAGE);
+ } else {
+ /***** Bug Two Solution -> Set the current time zone. *****/
+ if ($prefs->getValue('timezone') != '') {
+ putenv('TZ=' . $prefs->getValue('timezone'));
+ }
+ /***** Fin Bug Two Solution *****/
+ Horde::raiseMessage(sprintf(_("Last login: %s"), strftime(_("%c"),
+ $last_login)), HORDE_MESSAGE);
+ }
+ }
+
+
+ .............................................................
+
+ Santiago Cabanillas
+ Desarrollo
+ http://www.arraialdajuda.com