`
iamlibo
  • 浏览: 67750 次
社区版块
存档分类
最新评论

f:convertDateTime转换日期的时间问题

阅读更多

使用f:convertDateTime转换日期时,会出现时间的问题,显示出来的日期与实际日期相差8个小时,要加入timeZone="GMT+8"才可以正确的显示

<f:convertDateTime dateStyle="full" type="both" timeZone="GMT+8" locale="cn"/>

这样就可以正确的显示中文日期了.

<!----> Technorati : jsf

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics