Implementing DateTimeElement DisplayTimezone support through a DisplayTimzoneConverterAttribute that can be used to decorate fields in DAPI models. Related to changes in model generators PR.
Inspiration taken from PropertyValueConverters in SDK tests. Implemented converter that maps TZ value from DateTime element into a property in model that is decorated with target element codename and the converter attribute.
I can add more context on demand in person
Checklist
[ ] Code follows coding conventions held in this repo
[ ] Automated tests have been added
[ ] Tests are passing
[ ] Docs have been updated (if applicable)
[ ] Temporary settings (e.g. variables used during development and testing) have been reverted to defaults
How to test
Check that:
Old models that don't access the timezone work with updated version
Check that TZ maps correctly for newly generated models from updated PR with correct attributes
Motivation - sanity check review
Implementing DateTimeElement DisplayTimezone support through a
DisplayTimzoneConverterAttribute
that can be used to decorate fields in DAPI models. Related to changes in model generators PR.Inspiration taken from PropertyValueConverters in SDK tests. Implemented converter that maps TZ value from DateTime element into a property in model that is decorated with target element codename and the converter attribute.
I can add more context on demand in person
Checklist
How to test
Check that: