Reputation: 270
What does the timezone attribute of primefaces schedule do? I have created an event and saved it to database in UTC. If i set the timezone attribute of schedule to UTC or IST or EST it does not have any change. I think it should render the event in the specified timezone, am I correct?
Upvotes: 1
Views: 4592
Reputation: 3618
Try setting the ignoreTimezone to false (it is true by default).
<p:schedule ...ignoreTimezone="false" />
According to PrimeFaces documentation : By default, timezone offsets are ignored. Set ignoreTimezone to false so that schedule takes care of timezone differences by calculating the client browser timezone and the event date so that events are displayed at the clients local time.
Upvotes: 5