Set a default time zone for f:convertDateTime

后端 未结 2 2098
别那么骄傲
别那么骄傲 2020-11-30 00:30

I use JSF1.2 and I have a little problem with time zones.

Calendar respects my timezone and save the correct time in the Database. When I show it using a h:outputtex

2条回答
  •  有刺的猬
    2020-11-30 00:59

    For displaying date correctly you need to modify only in your web.xml

    
        javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE
        true
    
    

    and in your xhtml file

    
        
    
    

    Its a timezone issue. The context param should fix it.

提交回复
热议问题