Primefaces schedule component and time

UI Components for JSF
Post Reply
jcpearce
Posts: 14
Joined: 29 Nov 2010, 04:26

28 Mar 2011, 19:32

This is probably a rube question but when building a scheduler app around the primefaces schedule component when one clicks on a date area to create an event, the GUI time and time in the enter fields is off by -4 or -5 hours. That is if you click on say 9am, the text entering field displays the time as either 13:00 or 14:00. I've checked my timezone settings, the JVM correctly reports NYC. I've looked in the primefaces doc which I purchased to see if there was a setting for primefaces to calculate the offset but found no mention of an entry to make. ? Any ideas appreciated

Thank You
JCP

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Mar 2011, 19:42

Sounds like a conversion issue, maybe you can try setting javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE context-param to true.

jcpearce
Posts: 14
Joined: 29 Nov 2010, 04:26

28 Mar 2011, 20:13

Wonderful!!! Thank you very much.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests