TimeZone tz = calendars.getDefaultTimeZone();
editEvent.setLeft(left + "px");
editEvent.setTop(top + "px");
CalendarEvent ce = evt.getCalendarEvent();
SimpleDateFormat edit_sdf = new SimpleDateFormat("HH:mm");
edit_sdf.setTimeZone(tz);
Calendar calendar = Calendar.getInstance(org.zkoss.util.Locales
.getCurrent());
String[] times = edit_sdf.format(ce.getBeginDate()).split(":");
int hours = Integer.parseInt(times[0]);
int mins = Integer.parseInt(times[1]);
int bdTimeSum = hours + mins;
editEvent$ppbt.setSelectedIndex(hours*12 + mins/5);
times = edit_sdf.format(ce.getEndDate()).split(":");
hours = Integer.parseInt(times[0]);
mins = Integer.parseInt(times[1]);
int edTimeSum = hours + mins;
editEvent$ppet.setSelectedIndex(hours*12 + mins/5);
boolean isAllday = (bdTimeSum + edTimeSum) == 0;
editEvent$ppbegin.setTimeZone(tz);
editEvent$ppbegin.setValue(ce.getBeginDate());
editEvent$ppend.setTimeZone(tz);
editEvent$ppend.setValue(ce.getEndDate());
editEvent$ppallDay.setChecked(isAllday);
editEvent$pplocked.setChecked(ce.isLocked());
editEvent$ppbt.setVisible(!isAllday);
editEvent$ppet.setVisible(!isAllday);
editEvent$ppcnt.setValue(ce.getContent());
String colors = ce.getHeaderColor() + "," + ce.getContentColor();
int index = 0;
if ("#3467CE,#668CD9".equals(colors))
index = 1;
else if ("#0D7813,#4CB052".equals(colors))
index = 2;