in the database, I have a column that datatype is Date
.
I use ORM to map this DB, so, in the appropriate C# class, I have a field with DateTime datatype.
From FHIR-client I receive a JSON document with a date formatted in ISO 8601 and it contains Time Zone.
when I use conversion from string to DateTime I lose a Time Zone, and in the database, I store a date without a time zone.
When FHIR-client asks me for some data it already sent to me, I read the DB and, of course, return the original date but(!!!) without Time Zone.
is there any workaround somehow to store the time zone from the original FHIR request?
I'm not able to modify the existing database because it's a mature old project and used a lot of these tables etc.