-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hi,
we are developing a CAP Fiori Elements V4 app and have embedded the change-tracking plugin.
We are facing an issue with a field of type DateTime which is shown in the UI in the format saved on DB.
Neither the Date and Time are formatted correct, nor the timezone is taken into consideration.
We annotated the dateTime field for change-tracking. In the UI we display the value of the field together with the corresponding timezone.
The change-tracking UI does not display the value as what we would expect:
Annotated DateTime field with annotation to the TimeZone

Changelog annotation for the DateTime field

DateTime field respecting the TimeZone in our UI displayed

DateTime field not formatted and not respecting TimeZone within the change-tracking table

Could you please help with this issue? There is already an existing pull request for formatting a date field which is a similar problem
@cap-js/asyncapi: 1.0.3
@cap-js/cds-test: 0.4.0
@cap-js/cds-typer: 0.36.0
@cap-js/cds-types: 0.13.0
@cap-js/change-tracking: 1.0.8
@cap-js/db-service: 2.2.0
@cap-js/hana: 2.1.1
@cap-js/openapi: 1.2.3
@cap-js/sqlite: 2.0.2
@sap/cds: 9.1.0
@sap/cds-compiler: 6.1.0
@sap/cds-dk: 9.1.0
@sap/cds-dk (global): 9.1.0
@sap/cds-fiori: 2.0.1
@sap/cds-mtxs: 3.1.0
@sap/eslint-plugin-cds: 4.0.2
Node.js: v20.18.1
Best regards,
Christoph