开发者

Using timezone 'EST' in freemarker template

开发者 https://www.devze.com 2023-01-01 13:27 出处:网络
<#setting time_zone=\"America/New_York\"> Time: ${response.currentDate?开发者_如何学Pythonstring(\"MM/dd/yyyy hh:mm a zzz\")}.
<#setting time_zone="America/New_York">
Time: ${response.currentDate?开发者_如何学Pythonstring("MM/dd/yyyy hh:mm a zzz")}.

I need the timezone to be displayed as 'EST'. But currently, when i run the application and the email gets generated from the template above, it is displaying as 'EDT'.

Can you please let me know what needs to be done to show as 'EST'? The current timezone (on the system where I am testing) is Indian Standard Time

Thanks!


try <#setting time_zone="US/Eastern">


The behavior is expected at this point of year. Refer: http://www.timeanddate.com/library/abbreviations/timezones/na/edt.html

(thanks to the above comment by Jon)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号