Bonjour,

J'ai réalisé un agenda qui affiche le jour de réservation pour un client pour une chambre donnée. Les informations proviennent de la base des
données. Mais je constate lors de l'affichage dans le schedule le jour son décalé de 1 par rapport aux date provenant de la base des données.

Schedule:
Nom : reservation.png
Affichages : 178
Taille : 22,0 Ko

table réservation:
Nom : bdd.png
Affichages : 139
Taille : 8,1 Ko

les codes présentent comme suit:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 
<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:p="http://primefaces.org/ui"
		template="/resources/templates/generalTemplateFac.xhtml">
 
    <ui:define name="title">
       AGENDA
    </ui:define>
 
    <ui:define name="content">  
    <h:form>
    <p:growl id="messages" showDetail="true" />
 
    <h:panelGrid columnClasses="value">
          <h3 style="margin-top: 0">RESERVATIONS</h3>
        <p:schedule id="schedule" value="#{agendaReservationBean.eventModel}" 
                    widgetVar="myschedule" >
 
            <p:ajax event="dateSelect" listener="#{agendaReservationBean.onDateSelect}" update="eventDetails" oncomplete="PF('eventDialog').show();" />
            <p:ajax event="eventSelect" listener="#{agendaReservationBean.onEventSelect}" update="eventDetails" oncomplete="PF('eventDialog').show();" />
            <p:ajax event="eventMove" listener="#{scheduleView.onEventMove}" update="messages" />
            <p:ajax event="eventResize" listener="#{scheduleView.onEventResize}" update="messages" />
 
        </p:schedule>
 
 
    </h:panelGrid>
 
    <!--boite de dialogue après clic de la calendrier -->
 
    <p:dialog widgetVar="eventDialog" header="Event Details" showEffect="clip" hideEffect="clip">
        <h:panelGrid id="eventDetails" columns="2">
            <p:outputLabel for="title" value="Titles:" />
            <p:inputText id="title" value="#{scheduleView.event.title}" required="true" />
 
            <p:outputLabel for="from" value="From:" />
            <p:calendar id="from" value="#{scheduleView.event.startDate}" timeZone="GMT+2" pattern="dd/MM/yyyy HH:mm"/>
 
            <p:outputLabel for="to" value="To:" />
            <p:calendar id="to" value="#{scheduleView.event.endDate}" timeZone="GMT+2" pattern="dd/MM/yyyy HH:mm"/>
 
            <p:outputLabel for="allDay" value="All Day:" />
            <h:selectBooleanCheckbox id="allDay" value="#{scheduleView.event.allDay}" />
 
            <p:commandButton type="reset" value="Reset" />
            <p:commandButton id="addButton" value="Save" action="#{scheduleView.addEvent}" oncomplete="PF('myschedule').update();PF('eventDialog').hide();" />
        </h:panelGrid>
    </p:dialog>    
</h:form>
 
 </ui:define>
 
</ui:composition>
Comment corriger ce décalage dans l'affichage.