<#setting time_zone="America/New_York">
Time: ${response.currentDate?string("MM/dd/yyyy hh:mm a zzz")}.
我需要将时区显示为“EST”。但目前,当我运行应用程序并从上面的模板生成电子邮件时,它显示为“EDT”。
你能告诉我需要做什么才能显示为“EST”吗?当前时区(在我正在测试的系统上)是印度标准时间
谢谢!
<#setting time_zone="America/New_York">
Time: ${response.currentDate?string("MM/dd/yyyy hh:mm a zzz")}.
我需要将时区显示为“EST”。但目前,当我运行应用程序并从上面的模板生成电子邮件时,它显示为“EDT”。
你能告诉我需要做什么才能显示为“EST”吗?当前时区(在我正在测试的系统上)是印度标准时间
谢谢!
尝试<#setting time_zone="US/Eastern">
预计在今年的这个时候会出现这种行为。参考:http ://www.timeanddate.com/library/abbreviations/timezones/na/edt.html
(感谢乔恩的上述评论)