Jli | 2022-11-02 12:20:47 UTC | #1
Hi, I executed the query under below to get the data of ConversationsDetails, but the values of date type fields turned out to be different as below.
Do you know how this comes out and how can I get the same value from java application as developper tools returns ,thank you! ■① Data from developper tools "conversations": [ { "conversationEnd": "2022-11-01T05:08:45.659Z", ① "conversationStart": "2022-11-01T05:07:56.529Z", ...
■ ②Data from java application before parse to json (Query Response without editting) class AnalyticsConversationQueryResponse { aggregations: [] conversations: [class AnalyticsConversationWithoutAttributes { conversationEnd: Thu Oct 06 16:57:31 JST 2022 ② conversationStart: Thu Oct 06 16:56:45 JST 2022
■ ③Data from java application after parse to json {"conversations":[ { "conversationEnd" : 1665043051861, ③ "conversationStart" : 1665043005900,
I used the below method to parse the response data to json data. ObjectMapper objectMapper = new ObjectMapper(); String jsonStr =objectMapper.writerWithDefaultPrettyPrinter(). writeValueAsString(queryResponse.getConversations());
Thank you!
Jli | 2022-11-07 11:22:38 UTC | #2
Can anyone help me with my questions , thank you!
tim.smith | 2022-11-08 18:12:55 UTC | #3
We cannot investigate org-specific data on the forum as it is a public setting and we do not have access to your org. Please open a case with Genesys Cloud Care to investigate data in your org that you believe to be incorrect.
Jli | 2022-11-10 08:51:03 UTC | #4
Using Calendar and other classes I parsed the value below as developper tools returns in my application.
■before parse 1665043051861
■after parse 2022-11-01T05:08:45.659Z
Thank you for your advice!
John_Carnell | 2022-11-15 16:15:43 UTC | #5
This post was migrated from the old Developer Forum.
ref: 17024