Correción de timeZone al mostrar fechas convertidas con JSF.
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
|
||||
<param-value>client</param-value>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="ui-g-3">
|
||||
<div class="ui-inputgroup">
|
||||
<p:calendar id="fecha" value="#{VisitList.selectedDate}" pattern="dd/MM/yyyy" showButtonPanel="true" autocomplete="true" />
|
||||
<p:commandButton value="Mostrar" update="dtVisitList" action="#{VisitList.showData}"/>
|
||||
<p:commandButton value="Mostrar" update="dtVisitList" action="#{VisitList.showData}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-g-7">
|
||||
@@ -29,11 +29,15 @@
|
||||
rowsPerPageTemplate="10,20,30,40">
|
||||
|
||||
<p:column headerText="Fecha" width="90px;">
|
||||
<h:outputText value="#{v.date}" />
|
||||
<h:outputText value="#{v.date}">
|
||||
<f:convertDateTime type="date" pattern="dd/MM/yyyy" timeStyle="short" />
|
||||
</h:outputText>
|
||||
</p:column>
|
||||
|
||||
<p:column headerText="Hora" width="90px;">
|
||||
<h:outputText value="#{v.time}" />
|
||||
<h:outputText value="#{v.time}">
|
||||
<f:convertDateTime type="time" pattern="HH:mm" />
|
||||
</h:outputText>
|
||||
</p:column>
|
||||
|
||||
<p:column headerText="Paciente" width="auto">
|
||||
|
||||
Reference in New Issue
Block a user