[klutz] Timezone in Klutz - FIX

nathanf nathanf at waterandsnow.net
Wed Mar 10 05:58:31 PST 2004


Here is a fix for the timezone problem in Klutz.
Just needed to add:

NLS::setTimeZone();


klutz/lib/base.php

---------------------------

    // Registry.
    if (Util::nonInputVar('session_control') == 'none') {
        $registry = &Registry::singleton(HORDE_SESSION_NONE);
    } elseif (Util::nonInputVar('session_control') == 'readonly') {
        $registry = &Registry::singleton(HORDE_SESSION_READONLY);
    } else {
        $registry = &Registry::singleton();
    }
    if (is_a(($pushed = $registry->pushApp('klutz', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
        if ($pushed->getCode() == 'permission_denied') {
            Horde::authenticationFailureRedirect(); 
        }
        Horde::fatal($pushed, __FILE__, __LINE__, false);
    }
    $conf = &$GLOBALS['conf'];
    @define('KLUTZ_TEMPLATES', $registry->getParam('templates'));
    
+   // Set the timezone variable, if available.
+   NLS::setTimeZone();

    // Notification system.
    $notification = &Notification::singleton();
    $notification->attach('status');
    
    // Find the base file path of Klutz.
    @define('KLUTZ_BASE', dirname(__FILE__) . '/..');

---------------------------


--Nathan F.



More information about the klutz mailing list