ical4j
ical4j copied to clipboard
setUtc giving wrong Timezone
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Create a VCalendar
- Create a VEvent
- call the Builder of Recur
- 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 =/;