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

Fixed saving timezone (JM-462).

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3068 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7d406039
......@@ -24,6 +24,14 @@
Map errors = new HashMap();
if (save) {
// Set the timezeone
try {
TimeZone tz = TimeZone.getTimeZone(timeZoneID);
JiveGlobals.setTimeZone(tz);
}
catch (Exception e) {
Log.debug(e);
}
Locale newLocale = null;
if (localeCode != null) {
newLocale = LocaleUtils.localeCodeToLocale(localeCode.trim());
......@@ -36,12 +44,6 @@
return;
}
}
// Set the timezeone
try {
TimeZone tz = TimeZone.getTimeZone(timeZoneID);
JiveGlobals.setTimeZone(tz);
}
catch (Exception e) {}
}
Locale locale = JiveGlobals.getLocale();
......
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