I am using Vaadin Gantt add-on in my application which is running good in my local machine. However, when I try the same application in the cloud (Jelastic), I am getting the following exception:
java.lang.IllegalArgumentException: Time zone UTC not found in TimeZoneConstants.properties
at org.tltv.gantt.Gantt.getTimeZoneJson(Gantt.java:985)
at org.tltv.gantt.Gantt.updateTimezoneOffsets(Gantt.java:881)
at org.tltv.gantt.Gantt.updateTimelineStartTimeDetails(Gantt.java:868)
at org.tltv.gantt.Gantt.setStartDate(Gantt.java:189)
at com.inteacc.erp.web.pss.realestateproject.RealEstateProjectEdit.initGanttStartEndDate(RealEstateProjectEdit.java:794)
Here is my code:
if(planStartDateField.getValue()!=null) { planStartDateField.setTimeZone(TimeZone.getTimeZone("GMT")); gantt.setStartDate(planStartDateField.getValue()); Date toDate = DateUtils.addMonths(planStartDateField.getValue(),24); gantt.setEndDate(toDate); }
I also tried without this line but not difference:
planStartDateField.setTimeZone(TimeZone.getTimeZone(“GMT”));
The reason of the exception is available here. As this add-on has it’s own time-zone property, It would be really helpful if someone helps how this can be resolved where I don’t want to use the time-zone mechanism of the add-on as we already have it in CUBA App.