andrea-magni/MARS

Timezone option in TRecord serialization

Opened this issue · 1 comments

When serializing objects to JSON options for controlling timezone in datetime and time format is available. AOptions: TJsonOptions = [joDateIsUTC, joDateFormatISO8601]

Such options is not available when serializing records. It would be really nice to have same or equal option / attribute to control if a date value is in UTC timezone.

Unfortunately TJsonOption is by REST.Json unit that I am trying to dismiss.
I really dislike the serialization from REST.Json (fields vs properties, no getter/setter firing etc) so I've gone to implement JSON serialization from scratch. I will probably need some sort of configuration (as in the other issue you opened, #110 ).