i have a grails project
Customer customer = Customer.get(params.id)
where customer is a domain class
i need to display
Date date = customer.createDate
in user local setting
i can use java or grails or groovy or html or javascript to do that
Example:
if date = "2012-01-01 00:00:00.0" in GMT
then user must display it as "2012-01-01 01:00:00.0" in London (GMT +1)
any help to use user local setting to display date?
show this site http://www.pageloom.com/automatic-timezone-detection-with-javascript it is helpful
download jstz.min.js and add a function to your html page
and call this function your tag