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

SOAP XML messages do not convert GMT time to local time

SA-14636

Summary



Create XML using the XML Stream rule and use function '@(Pega-RULES:DateTime).CurrentDateTime()' to pass GMT time to dateTime type property in Request Mapping data transform. Call a Service, where Data Type is XML Literal and Mapped From XML Stream and element type is dateTime.

The stream rule does not convert the GMT timestamp to local timestamp in all environments.


Error Messages



Not Applicable


Steps to Reproduce

  1. Use function '@(Pega-RULES:DateTime).CurrentDateTime()' to pass GMT time to dateTime type property in Request Mapping data transform.
  2. Call Service where Data Type is XML Literal and Mapped From XML Stream and element type is dateTime.
The stream rule does not convert the GMT timestamp to local timestamp.


Root Cause



Pega always maintains DateTime properties in GMT timezone internally.
To convert to any other timezone, FormatDateTime function is provided.


Resolution



Perform the following local-change:
​Use FormatDateTime function to convert GMT time to user timezone.

 

Suggest Edit

Published September 24, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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