Commit d2cbb096 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed saving time zone (JM-469).

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3115 b35dd754-fafc-0310-a699-88a17e54d16e
parent 81a286a2
...@@ -141,9 +141,15 @@ public class JiveGlobals { ...@@ -141,9 +141,15 @@ public class JiveGlobals {
*/ */
public static void setTimeZone(TimeZone newTimeZone) { public static void setTimeZone(TimeZone newTimeZone) {
timeZone = newTimeZone; timeZone = newTimeZone;
timeFormat.setTimeZone(timeZone); if (timeFormat != null) {
dateFormat.setTimeZone(timeZone); timeFormat.setTimeZone(timeZone);
dateTimeFormat.setTimeZone(timeZone); }
if (dateFormat != null) {
dateFormat.setTimeZone(timeZone);
}
if (dateTimeFormat != null) {
dateTimeFormat.setTimeZone(timeZone);
}
setProperty("locale.timeZone", timeZone.getID()); setProperty("locale.timeZone", timeZone.getID());
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
JiveGlobals.setTimeZone(tz); JiveGlobals.setTimeZone(tz);
} }
catch (Exception e) { catch (Exception e) {
Log.debug(e); Log.error(e);
} }
Locale newLocale = null; Locale newLocale = null;
if (localeCode != null) { if (localeCode != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment