if (conf != null) {
jNameTimeZone = conf.getConf_value();
}
}
OmTimeZone omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
Calendar cal = Calendar.getInstance();
cal.setTimeZone(TimeZone.getTimeZone(omTimeZone.getIcal()));
int offset = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET);
Date starttime = new Date(appointment.getAppointmentStarttime().getTime() + offset);
Date endtime = new Date(appointment.getAppointmentEndtime().getTime() + offset);
returnMap.put("appointment", appointment);
returnMap.put("start", CalendarPatterns.getDateWithTimeByMiliSeconds(starttime));
returnMap.put("end", CalendarPatterns.getDateWithTimeByMiliSeconds(endtime));
returnMap.put("timeZone", omTimeZone.getIcal());
return returnMap;
}catch(Exception e){
log.error("getAppointMentAndTimeZones " + e.getMessage());
return null;