on 01-10-2022 10:26 AM
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!
A have a solution for this from jens.pflueger (thank you again ;-)):
There is no option to set this on annotation level but it is possible to set it for a smartTable:
<smartTable:SmartTable>
<smartTable:customData>
<core:CustomData id="_IDEGen_customdata2" key="useUTCDateTime" value="true"/>
</smartTable:customData>
</smartTable:SmartTable>
Br,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you can link to the original answer from Jens?
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.