Support Article

UTC format fields not converting to GMT format for REST

SA-39874

Summary



A REST service returns a datetime value in a JSON message using UTC format (for example, 2017-06-12T18:16:00.324Z).

While HFix-29779 prevents an exception from getting thrown, the datetime format still remains in UTC format and does nott get converted to Pega supported GMT format.

It is expected that Pega would parse the datetime value to it's internal format so that it can be used to display datetime values or used in data transforms.


Error Messages



InvalidDateTimeValue 2017-06-12T18:16:00.324Z


Steps to Reproduce



1. Use SOAPUI to simulate the Rest JSON response - {"createdate":"2017-06-12T18:16:00.324Z"}.
2. Use Rest integration wizard to generate Data page and connect-rest Rule.
3. Change the Int- createdate property type from Text to DateTime.
4. Run Data page and Trace the execution.


Root Cause



A defect in Pegasystems’ code or rules

Resolution



Perform the following local-change steps:
  1. Apply Hfix-35264.
  2. Restart JVM for the code change to take effect.

Published June 23, 2017 - Updated August 20, 2017

Have a question? Get answers now.

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