Listing dates with primefaces

Asked

Viewed 23 times

1

I’m listing dates using convertDateTime, the problem is this way it always presents the day before what is being read database. Without the convertDateTime it presented the correct date.

<h:outputText value="#{item.dataperf}">
     <f:convertDateTime pattern="dd/MM/yyyy" tipe="date"/>                           
</h:outputText>
  • It won’t be a time zone problem? See this response on Soen

  • https://stackoverflow.com/questions/12351244/jsf-convertdatetime-renders-the-previous-day Give a read on this topic here man. I believe it will be useful for you.

  • Boas Lazyfox and Rodrigo Nantes. Thanks for your help, I found in the suggested link the solution.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.