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

Creation date in the case attachment always displays in GMT



The creation date in the case attachment always displays in the GMT format and does not consider the user locale.

Error Messages

Not Applicable.

Steps to Reproduce

  1. Set the user timezone to a different one from the server 
  2. Create a case
  3. Add a URL in the media content
  4. Check the time in the case attachments

Root Cause

A defect in Pegasystems’ code or rules.


Perform the following local-change:

Replace below code in pyAttachmentFeedDescription in UI Kit: 

String createDateTime = primary.getString("pxCreateDateTime"); 
java.text.SimpleDateFormat simpleDateFormat = new java.text.SimpleDateFormat("yyyyMMdd'T'HHmmss", Locale.getDefault()); 
Date parsedDate = simpleDateFormat.parse(createDateTime); 

java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("MMM. dd, yyyy hh:mm aa"); 
formattedDate = dateFormat.format(parsedDate);
} catch(Exception e) { 


formattedDate = pega_rules_datetime.FormatDateTime(primary.getString("pxCreateDateTime"),"MMM dd, yyyy hh:mm aa z",null,null); 
} catch(Exception e) { 


Alternatively, upgrade to UI Kit- 8.1.


Published October 12, 2018 - Updated December 2, 2021

Was this useful?

0% 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