Notes |
|
(0055867)
|
hgbot
|
2013-01-25 14:32
|
|
Repository: erp/devel/pi
Changeset: d0d2ca046bbb2b054d43a31a4cba76d02949e4e0
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Jan 25 14:31:21 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d0d2ca046bbb2b054d43a31a4cba76d02949e4e0 [^]
Fixes issue 22885: Dates in filters are serialized as Date, and not DateTime
The problem was that the Date was being serialized as a DateTime, and javascript was converting the resulting datetime to the UTC format.
I.e. if the user entered 24-01-2013, the date sent to the server for filtering was 23-01-2013 23:00:00. This conversion was being done when smartclient serialized the date. If the date had the logicalDate property set to true, then the conversion was done properly.
The change has been done only in the ob-formitem-minidaterange.js to ensure that the DateTime fields are serialized with both its date and time parts.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
---
|
|
|
|
Test plan:
- Follow the steps to reproduce to check that the issue has been fixed. Try several date filter configurations:
* Enter a date manually in the filter
* Enter a From and a To date
* Enter only a From date
* ... |
|
|
|
|
|
(0055891)
|
shankarb
|
2013-01-28 05:59
|
|
Code Reviewed and Verified in pi changeset 6075f911fafd. |
|