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:
parent
3cea3a16cf
commit
173bac593b
@ -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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user