From 985e410012f1a7937f4c7d0bbe2b9c0b1a40b693 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 28 Sep 2011 10:26:23 -0400
Subject: [PATCH] Unset auto timezone value if overwritten by user prefs

---
 program/include/rcube_config.php |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php
index 1c8e237..338e07e 100644
--- a/program/include/rcube_config.php
+++ b/program/include/rcube_config.php
@@ -222,6 +222,8 @@
             $this->prop['_timezone_value'] = isset($_SESSION['timezone']) ? $_SESSION['timezone'] : $this->prop['_timezone_value'];
             $this->prop['dst_active'] = isset($_SESSION['dst_active']) ? $_SESSION['dst_active'] : $this->prop['dst_active'];
         }
+        else if (isset($this->prop['_timezone_value']))
+           unset($this->prop['_timezone_value']);
     }
 
 

--
Gitblit v1.9.1