I am using a table from MS SQL
database and developed a GET API
using Spring Boot
, to retrieve all the data from that table.
Here the table contains a column of type datetimeoffset(7)
.
I have data member OffsetDateTime updatedDate
inside my Entity, used to map datetimeoffset
column from the DB
Now, when I get the API response, I see the updatedDate
value (2021-06-17T05:37:40.1938687+05:30) is different from actual database value (2021-06-16 19:07:40.1938687 -05:00).
I explored web to find some help and tried few solutions similar to Solution, however I did not see any positive results.
Any help would be really appreciable, thanks!
PS. Spring Boot
version: 2.3.1.RELEASE