}
public static TeamEventDO createTeamEventDO(final VEvent event)
{
final TeamEventDO teamEvent = new TeamEventDO();
final DtStart dtStart = event.getStartDate();
final String value = dtStart.toString();
if (value.indexOf("VALUE=DATE") >= 0) {
teamEvent.setAllDay(true);
}
Timestamp timestamp = ICal4JUtils.getSqlTimestamp(dtStart.getDate());
teamEvent.setStartDate(timestamp);
if (teamEvent.isAllDay() == true) {
final org.joda.time.DateTime jodaTime = new org.joda.time.DateTime(event.getEndDate().getDate());
final net.fortuna.ical4j.model.Date fortunaEndDate = new net.fortuna.ical4j.model.Date(jodaTime.plusDays(-1).toDate());
timestamp = new Timestamp(fortunaEndDate.getTime());