1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04: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
VObject vObject = getVTimezone();
if (vObject != null) {
try {
tzid = ResourceBundle.getBundle("timezones").getString(vObject.getPropertyValue("TZID"));
} catch (MissingResourceException e) {
LOGGER.debug("Timezone rename failed, timezone "+vObject.getPropertyValue("TZID")+" not found in table");
String currentTzid = vObject.getPropertyValue("TZID");
if (currentTzid != null && currentTzid.indexOf(' ') >= 0) {
try {
tzid = ResourceBundle.getBundle("timezones").getString(currentTzid);
} catch (MissingResourceException e) {
LOGGER.debug("Timezone rename failed, timezone " + currentTzid + " not found in table");
}
}
}
}