From c21d7fa7876d2160c3771e892be4a6e06cc143e3 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 05 Jan 2012 04:56:18 -0500
Subject: [PATCH] - Update timezone in user prefs too (#1488291)

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

diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php
index 18a90a9..e163957 100644
--- a/program/include/rcube_config.php
+++ b/program/include/rcube_config.php
@@ -219,6 +219,11 @@
             }
         }
 
+        // convert user's timezone into the new format
+        if (is_numeric($prefs['timezone'])) {
+            $prefs['timezone'] = timezone_name_from_abbr('', $prefs['timezone'] * 3600, 0);
+        }
+
         $this->userprefs = $prefs;
         $this->prop      = array_merge($this->prop, $prefs);
 

--
Gitblit v1.9.1