1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-11-10 11:25:00 -05:00

Caldav: improve timezone rename error message

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1587 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-01-02 22:12:41 +00:00
parent 3cea3a16cf
commit 173bac593b

View File

@ -149,10 +149,13 @@ public class VCalendar extends VObject {
// get current tzid // get current tzid
VObject vObject = getVTimezone(); VObject vObject = getVTimezone();
if (vObject != null) { if (vObject != null) {
try { String currentTzid = vObject.getPropertyValue("TZID");
tzid = ResourceBundle.getBundle("timezones").getString(vObject.getPropertyValue("TZID")); if (currentTzid != null && currentTzid.indexOf(' ') >= 0) {
} catch (MissingResourceException e) { try {
LOGGER.debug("Timezone rename failed, timezone "+vObject.getPropertyValue("TZID")+" not found in table"); tzid = ResourceBundle.getBundle("timezones").getString(currentTzid);
} catch (MissingResourceException e) {
LOGGER.debug("Timezone rename failed, timezone " + currentTzid + " not found in table");
}
} }
} }
} }