alecpl
2012-01-06 e86a21bd83a0ae6cadfe9c919582951f306d3b64
program/include/rcube_config.php
@@ -254,9 +254,13 @@
     */
    public function get_timezone()
    {
      if ($this->get('timezone')) {
        $tz = new DateTimeZone($this->get('timezone'));
        return $tz->getOffset(new DateTime('now')) / 3600;
      if ($tz = $this->get('timezone')) {
        try {
          $tz = new DateTimeZone($tz);
          return $tz->getOffset(new DateTime('now')) / 3600;
        }
        catch (Exception $e) {
        }
      }
      return 0;