ical4j icon indicating copy to clipboard operation
ical4j copied to clipboard

setUtc giving wrong Timezone

Open williamfenu opened this issue 6 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Create a VCalendar
  2. Create a VEvent
  3. call the Builder of Recur
  4. setUtc in until date

Expected behavior The correct TimeZone in until Rule like UNTIL=20191123T03000Z but I get UNTIL=20191123T02000Z and for this reason my evend ends a day sooner.

Environment (please complete the following information):

  • OS: Linux Ubuntu 19
  • Java Version 8

Additional context In DTSTART and DTEND I could get the correct Timezone doing:

TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry(); TimeZone timezone = registry.getTimeZone(timeZone.getId()); dtStart.setTimeZone(timezone);

I tried this in until rule but did not work =/;

williamfenu avatar Nov 20 '19 15:11 williamfenu