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 Response Dates Discrepancy

SA-32145

Summary



The user is on Pega 7.1.9 and reported that the Pega is hosting a SOAP service. The data received by SOAP UI when calling this SOAP service is one day behind the actual date retrieved by the SOAP service while sending the response.


Error Messages



Not Applicable


Steps to Reproduce

  1. Host a SOAP service in Pega.
  2. In the SOAP response send a date property.
  3. Call the SOAP Service using SOAP UI.


Root Cause



An issue in the custom application code or rules is identified as root cause of the issue. The database and application server were in CET time zone. The dates are maintained in Pega in GMT format. CET time zone is one hour behind GMT time zone. When adding 1 day to GMT midnight using @DateTime.addCalendar utility function, the date in CET time zone is still in the previous day causing the issue.

Resolution



Perform the following local-change:
  1. Use @(Pega-RULES:BusinessCalendar).addTime(startDateTime,days,hours,minutes,seconds,useBusinessCalendar,calendarName)​ function instead of @DateTime.addCalendar utility function. 
Suggest Edit

Published January 5, 2017 - 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