开发者

Using timezone 'EST' in freemarker template

<#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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜