if (start.isUtc()) { recurrenceSet.setUtc(true); } else if (start.getDate() instanceof DateTime) {
if (start.isUtc()) { recurrenceSet.setUtc(true); } else if (start.getDate() instanceof DateTime) {
/** * Convenience method to pull the DTEND out of the property list. If DTEND was not specified, use the DTSTART + * DURATION to calculate it. * @param deriveFromDuration specifies whether to derive an end date from the event duration where an end date is * not found * @return The end for this VEVENT. */ public final DtEnd getEndDate(final boolean deriveFromDuration) { DtEnd dtEnd = (DtEnd) getProperty(Property.DTEND); // No DTEND? No problem, we'll use the DURATION. if (dtEnd == null && deriveFromDuration && getDuration() != null) { final DtStart dtStart = getStartDate(); final Duration vEventDuration = getDuration(); dtEnd = new DtEnd(Dates.getInstance(vEventDuration.getDuration() .getTime(dtStart.getDate()), (Value) dtStart .getParameter(Parameter.VALUE))); if (dtStart.isUtc()) { dtEnd.setUtc(true); } } return dtEnd; }
if (dtStart != null && !dtStart.isUtc()) { throw new ValidationException("DTSTART must be specified in UTC time");
if (dtStart != null && !dtStart.isUtc()) { throw new ValidationException("DTSTART must be specified in UTC time");
if (dtStart.isUtc()) { dtEnd.setUtc(true); } else {
if (dtStart != null && !dtStart.isUtc()) { throw new ValidationException("DTSTART must be specified in UTC time");
if (dtStart != null && !dtStart.isUtc()) { throw new ValidationException("DTSTART must be specified in UTC time");
if (start.isUtc()) { recurrenceSet.setUtc(true);
if (dtStart.isUtc()) { dtEnd.setUtc(true); } else {
private BwDateTime addDuration(final Dur val) throws CalFacadeException { DtEnd dtEnd; java.util.Date endDt = val.getTime(makeDate()); DtStart dtStart = makeDtStart(Timezones.getTzRegistry()); if (getDateType()) { dtEnd = new DtEnd(new Date(endDt)); addIcalParameter(dtEnd, Value.DATE); } else { DateTime d = new DateTime(endDt); Parameter tzid = getIcalParameter(dtStart, "TZID"); if (tzid != null) { DateTime sd = (DateTime)dtStart.getDate(); d.setTimeZone(sd.getTimeZone()); } // dtEnd = new DtEnd(d, dtStart.isUtc()); dtEnd = new DtEnd(d); if (tzid != null) { addIcalParameter(dtEnd, tzid); } else if (dtStart.isUtc()) { dtEnd.setUtc(true); } } return makeBwDateTime(dtEnd); }
.getTime(dtStart.getDate()), (Value) dtStart .getParameter(Parameter.VALUE))); if (dtStart.isUtc()) { dtEnd.setUtc(true);
rid = new RecurrenceId(); try { if(startDate.isUtc()){ rid.setUtc(true); }else if(startDate.getTimeZone() != null){
rid = new RecurrenceId(); try { if(startDate.isUtc()){ rid.setUtc(true); }else if(startDate.getTimeZone() != null){
.getTime(dtStart.getDate()), (Value) dtStart .getParameter(Parameter.VALUE))); if (dtStart.isUtc()) { dtEnd.setUtc(true);
if (start.isUtc()) { recurrenceSet.setUtc(true); } else if (start.getDate() instanceof DateTime) {
if (start.isUtc()) { recurrenceSet.setUtc(true); } else if (start.getDate() instanceof DateTime) {
if (dtStart != null && !dtStart.isUtc()) { throw new ValidationException("DTSTART must be specified in UTC time");
} else if (dtStart.isUtc()) { mdtStart = new DtStart(bogusDate + bogusTime + "Z"); } else if (dtStart.getTimeZone() == null) {