use of org.bedework.icalendar.Icalendar.TimeZoneInfo in project bw-calendar-engine by Bedework.
the class IcalTranslator method doTimeZone.
private TimeZoneInfo doTimeZone(final VTimeZone vtz) throws CalFacadeException {
TzId tzid = vtz.getTimeZoneId();
if (tzid == null) {
throw new CalFacadeException("Missing tzid property");
}
String id = tzid.getValue();
try {
TimeZone tz = Timezones.getTz(id);
String tzSpec = null;
if (tz == null) {
tz = new TimeZone(vtz);
tzSpec = vtz.toString();
}
return new TimeZoneInfo(id, tz, tzSpec);
} catch (Throwable t) {
throw new CalFacadeException(t);
}
}
Aggregations