Hi Qooxdoo team,
I have implemented an *qx.ui.form.DateField() *with DateFormat as : *dd-MM-yyyy
*for my application. After user chose a specific date from WEB GUI, i would
get that value and use it for my query string. But the value gotten from
from DateField was different from the actual value chosen by user, i
debuged and found that reason came from
*qx.lang.Json.stringify()*function. Here is the code snipet :
// this._startDate && this._endDate are DateField with DateFormat:
dd-MM-yyyy
var searchStartDate = qx.lang.Json.stringify(this._startDate.getValue());
var searchEndDate = qx.lang.Json.stringify(this._endDate.getValue());
alert("this._startDate.getValue():"+this._startDate.getValue());
alert("this._endDate.getValue():"+this._endDate.getValue());
alert("searchStartDate:"+searchStartDate);
alert("searchEndDate:"+searchEndDate);
My Debug Log:
-- Actual value
this._startDate.getValue():Fri Nov 23 2012 00:00:00 GMT+0700 (SE Asia
Standard Time)
this._endDate.getValue():Fri Nov 26 2012 00:00:00 GMT+0700 (SE Asia
Standard Time)
-- The value gotten when call *qx.lang.Json.stringify *function
searchStartDate:"2012-11-22T17:00:00.000Z"
searchEndDate:"2012-11-25T17:00:00.000Z
It was decreased one day and i don't know why. Please help me to resolve
this problem.
Thanks so much for your supporting.
Thanks
Khoa Tran
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel