Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ISO 8601 Timestamp : UTC conversion and standard integration practices

juliojgsMay 10 2024

Hi,

we are working in a systems integration, involving international connections. We define our services and the other team theirs.

We developed using the timestamp format already existing in ords, with a “T” before the time part and the Z or offset at the end.

We've found they are using a date format like this: Pattern (YYYY-MM-DD HH:MM:SS)

We asked them how can they know the time if they are not receiving the timezone, so they said we can convene to use UTC.

As I was sending local timestamp, now I'll have to convert to UTC. Well, it is a reasonable solution.

When I consume, I'm converting like this example:

SELECT TO_CHAR(CAST(SYSDATE AS TIMESTAMP) AT TIME ZONE 'UTC', 'YYYY-MM-DD HH24:MI:SS') AS utc_date
FROM DUAL;

Is there a better way to convert my dates?

What is in your opinion the standard way to treat this kind of problem?

Thanks

Comments
Post Details
Added on May 10 2024
3 comments
1,032 views