f:convertDateTime displays wrong Date [duplicate]

JSF defaults to UTC timezone for date/time converters. To override this you need to set the timeZone attribute in every date/time converter. Here’s an example using EDT timezone (assuming you’re on the east of US). <f:convertDateTime locale=”en_US” type=”both” dateStyle=”short” timeZone=”EDT” /> The locale attribute only controls the full day/month name formatting (it becomes English). If … Read more