mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -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
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user