Struts2 Date Tag TimeZone behavior
问题 I am using <s:date> tag of struts2. To convert a date stored 04/09/2014 11:40:17 in UTC time to IST time I used struts2 date tag as belows : <s:date name = "dateregistered" format = "MM/dd/yyyy HH:mm:ss a" timezone = "GMT+5.30" /> and it always give me the date: 04/09/2014 06:10:17 AM . The expected result should be: 04/09/2014 05:10:17 PM . I am not getting where I am wrong and doing mistake,I am using hibernate to fetch and java.util.date to store the value which is used above The process