SOAP Response Dates Discrepancy
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.
Steps to Reproduce
- Host a SOAP service in Pega.
- In the SOAP response send a date property.
- Call the SOAP Service using SOAP UI.
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.
Perform the following local-change:
- Use @(Pega-RULES:BusinessCalendar).addTime(startDateTime,days,hours,minutes,seconds,useBusinessCalendar,calendarName) function instead of @DateTime.addCalendar utility function.
Published January 5, 2017 - Updated October 8, 2020
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.