Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Date Conversion Not working properly for AKST timezone

SA-45406

Summary



FormatDatetime function is not returning correct values for EST, PST and AKST timezones.

Error Messages



Not Applicable


Steps to Reproduce



Not Applicable


Root Cause



An issue in the custom application code or rules : Syntax for formatdatetime is not given properly.

Correct syntax is:
@FormatDateTime(@CurrentDateTime(),"", "America/New_York","") andthree3 letter timezone value are used

Resolution



Perform the following local-change:
Note:
  • Pega relies on Java for timezone handling. TimeZone.getAvailableIDs() is the java API which returns Java handled timezones
  • The short three letter names (example:MST) in Java shouldn’t be used. This has been deprecated since 1998 (see JDK 1.3 TimeZone)
EST
  • Use “America/New_York” as timezone string which will return the EST or EDT time whichever is applicable at the given time.
AKST MST User can use https://www.timeanddate.com/time/zones to check current and converted times.

Published March 9, 2018 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us