In JSF - Getting the Client's Locale (To Display time in browser's timezone)

后端 未结 6 2116
失恋的感觉
失恋的感觉 2020-12-28 10:03

I\'m writing a webapp in JSF 2.0 that displays Timestamps as part of the information to the user. I would like the user to see the timestamps localized to their location (br

6条回答
  •  悲哀的现实
    2020-12-28 10:32

    You can also use it like this direct in JSF code:

    
    

    Then you can reuse the timezonename in a JSF converter:

    
    

提交回复
热议问题