on 01-22-2018 10:51 PM
Hi,
I am using UI5 version 1.44. There is one date field (Date picker) in the application. Database value for this field is for ex: 21Dec2017. The value of this field at Gateway system is the same as database value while oData service testing. When I use UI5 application, it is showing as 20Dec2017. It is always showing one day less to database value. I tested with different dates. it is responding in the same manner. Did I miss anything? please help me to fix this issue.
Thank you,
Balaji P.
I was in chat with SAP and fixed the issue..
In my index file of the project, there are library names..
data-sap-ui-libs="sap.m,sap.ui.commons,sap.ui.table,sap.ui.ux3"
SAP suggested to remove all except "sap.m"
and format for date as below.
<DatePicker value="{path: 'Begda', type: 'sap.ui.model.type.Date', formatOptions: {pattern: 'MM/dd/yyyy', strictParsing: true , UTC: true}}" width="10em" id="Begda" required="true"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what data type of that field?
your fontend code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Balaji,
I also faced the same issue, I solved it by appending custom timer in my controller,
var date = new sap.ui.model.type.Date();
date = this.getView().byId("dt_dtField").getValue();
date = new Date(date + " 11:13:00");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Balaji. Does the UI5 application is running on server has different time zone with your Database service?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.