Skip to Content
0
Jan 10 at 10:26 AM

UTC in local Annotations

146 Views Last edit Jan 10 at 10:30 AM 3 rev

We would like to display a timestampe (Type Edm.DateTime) coming from a odata service within our sapui5 app without conversion to the local (user) timezone.

Is there a way to specify this via local annotations? Like it is possible within a view:

value="{path: 'detailView>/fromDate', type: 'sap.ui.model.type.DateTime', formatOptions: { pattern: 'dd.MM.YYYY HH:mm', UTC: true }}"

with the UTC: true parameter?

Thank you!