Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date and time formats in ISO-20022 JSON #94

Closed
gverran opened this issue Jul 12, 2023 · 1 comment
Closed

Date and time formats in ISO-20022 JSON #94

gverran opened this issue Jul 12, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@gverran
Copy link

gverran commented Jul 12, 2023

Is there a reason why the date and times are represented in JSON in different fields instead of using the OpenAPI date time format?
eg: yyyy-MM-ddTHH:mm:ss+zz:zz

eg: 2023-07-12T15:22:53+00:00

@zubri
Copy link
Member

zubri commented Oct 2, 2023

It was reasonable at the time, to be consistent with the JSON structures we used to have MT messages, where we split everything that can be parsed. Also to have more control over the marshalling/unmarshalling date for the legacy XMLGregorianCalendar objects.

With the new java.time implementations used in release 10, we explored several options. Including using default string representation for the different java.time objects, but non was good enough for consistency. So we ended up adding adapters for it.

You can check here the current representation for all date and date time elements depending on the model type.

https://dev.prowidesoftware.com/SRU2023-10/open-source/iso20022/iso20022-mx-json/#date-and-time-formats

@zubri zubri closed this as completed Oct 2, 2023
@zubri zubri self-assigned this Oct 2, 2023
@zubri zubri added the question Further information is requested label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants