alecpl
2011-08-31 b08caf5813c43e8648cdf5db1e003b3046a37c2c
program/include/rcube_config.php
@@ -220,6 +220,19 @@
        return $this->prop;
    }
    /**
     * Special getter for user's timezone
     */
    public function get_timezone()
    {
      $tz = $this->get('timezone');
      if ($tz == 'auto')
        $tz = isset($_SESSION['timezone']) ? $_SESSION['timezone'] : date('Z') / 3600;
      else
        $tz = intval($tz) + intval($this->get('dst_active'));
      return $tz;
    }
    /**
     * Return requested DES crypto key.