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-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
|
||||||
<param-value>true</param-value>
|
<param-value>true</param-value>
|
||||||
</context-param>
|
</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>
|
<context-param>
|
||||||
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
|
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
|
||||||
<param-value>client</param-value>
|
<param-value>client</param-value>
|
||||||
|
|||||||
@@ -29,11 +29,15 @@
|
|||||||
rowsPerPageTemplate="10,20,30,40">
|
rowsPerPageTemplate="10,20,30,40">
|
||||||
|
|
||||||
<p:column headerText="Fecha" width="90px;">
|
<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>
|
||||||
|
|
||||||
<p:column headerText="Hora" width="90px;">
|
<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>
|
||||||
|
|
||||||
<p:column headerText="Paciente" width="auto">
|
<p:column headerText="Paciente" width="auto">
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ public class VisitListMBean extends ManagedBeanBase implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void showData() {
|
public void showData() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getSelectedDate() {
|
public Date getSelectedDate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user