imdahmd
imdahmd

Reputation: 777

Using timezone 'EST' in freemarker template

<#setting time_zone="America/New_York">
Time: ${response.currentDate?string("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!

Upvotes: 0

Views: 2717

Answers (2)

Neelesh Zagade
Neelesh Zagade

Reputation: 11

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

Upvotes: 1

imdahmd
imdahmd

Reputation: 777

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)

Upvotes: 0

Related Questions