Open bladem opened 5 years ago
Current hour don't use zoneId. I set the user's zoneId but the component get system default.
` calendar = new Calendar<>(eventProvider);
calendar.setZoneId(defaultZoneId); calendar.withDay(ZonedDateTime.now(defaultZoneId)); calendar.withDayInMonth(ZonedDateTime.now(defaultZoneId)); calendar.addStyleName("meetings"); calendar.setWidth(100.0f, Unit.PERCENTAGE); calendar.setHeight(100.0f, Unit.PERCENTAGE); calendar.setResponsive(true); calendar.setItemCaptionAsHtml(true); calendar.setContentMode(ContentMode.HTML); calendar.withVisibleDays(1, 5); calendar.withVisibleHours(8, 18); calendar.setLocale(CurrentUser.get().getLocale()); calendar.setTimeFormat(TimeFormat.Format24H); calendar.setStartDate(ZonedDateTime.of(2017, 9, 10, 0,0,0, 0, defaultZoneId)); calendar.setEndDate(ZonedDateTime.of(2017, 9, 16, 0,0,0, 0, defaultZoneId));`
Current hour don't use zoneId. I set the user's zoneId but the component get system default.
` calendar = new Calendar<>(eventProvider);