Liferay date-input displays wrong date
问题 I'm using Liferay 7.1 I have the following liferau-ui:input-date object and I want to pre-select a date: <% final LocalDate today = LocalDate.now(ZoneId.systemDefault()); %> <liferay-ui:input-date dayValue="<%= today.getDayOfMonth()%>" monthValue="<%=today.getMonth().getValue()%>" yearValue="<%= today.getYear()%>" </liferay-ui:input-date> When I output today 's values directly on the JSP I get the correct date for today: 3 12 2018 . When the element is rendered, it has selected the wrong date