on 03-13-2018 7:37 PM
Hello community, i'm very disturbed becasue i think that sapui5 is decreasing a date that i pass from my odata, take a look of this:
this is my odata results:
i just print de propertie "Fecha" and i use a sapui5 type:
<Text text="{
path: '/date',
type: 'sap.ui.model.type.Date',
formatOptions: {
style: 'short'
}
}" />
and i'm getting this.
even if do not use anything this is the result: Tue May 24 2016 20:00:00 GMT-0400 (Hora est. Sudamérica Pacífico)
all my dates are the same it should 25/05/16 insted 24/5/16
nothing is wrong. the date sent by odata is utc date, you displayed in local timezone in the browser. that's where the difference comes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is because it converts your timezone to utc. You need to convert it to system time zone on the way in and out.
You can read more about it here https://blogs.sap.com/2017/06/05/handling-date-and-time-in-post-requests-in-odata/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.