My Oracle Support Banner

E-IB/E-ES: ToString() Method On JSONObject Class Is Modifying Format Of The DateTime From YYYY-MM-DDTHH:MI:SS (Doc ID 2800665.1)

Last updated on AUGUST 19, 2021

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.58 and later
Information in this document applies to any platform.

Symptoms


toString() method on JSONObject class is modifying format of the dateTime from YYYY-MM-DDTHH:MI:SS.xxxZ to YYYY-MM-DD HH:MI:SS.0000xxx. As a result of this when JSON string is stored in database and later retrieved back to JSON object then getDateTime() no longer works as the it expects the format to be YYYY-MM-DDTHH:MI:SS.xxxZ.


The issue can be reproduced at will with the following steps:
1. Open in Application Designer the PSTESTUTIL page
2. On a FieldChange event on button write the following PeopleCode:

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.