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

Timezone option in TRecord serialization #111

Open
larsenbjorn opened this issue Dec 3, 2021 · 1 comment
Open

Timezone option in TRecord serialization #111

larsenbjorn opened this issue Dec 3, 2021 · 1 comment

Comments

@larsenbjorn
Copy link
Contributor

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.

@andrea-magni andrea-magni self-assigned this Dec 4, 2021
@andrea-magni
Copy link
Owner

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 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants