Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0033265 | Retail Modules | Web POS | public | 2016-06-15 09:41 | 2016-06-23 13:39 |
|
Reporter | adrianromero | |
Assigned To | adrianromero | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | OBPS |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0033265: Times and DateTimes are not properly converted by the function getJSONArray(Query) |
Description | In mobile.core java class "HQLPropertyList", the method "public JSONArray getJSONArray(Query query) throws JSONException" do not sets the UTC timezome when formatting to a javascript date. This is needed because otherwise the WebPOS will load a date time with a difference of the server time zone. For example if the webPOS sends the date "2016-06-10T15:00:00.698Z" it will receive 2016-06-10T13:00:00.698Z". This was properly managed in the deprecated function getJSONObjectRow(Object[]) |
Steps To Reproduce | Create a new datetime or time field in c_orderline, and create and the functionality to save and load the value. There is a field like this "delivery time" in https://code.openbravo.com/erp/pmods/org.openbravo.retail.deliveryconditions [^] |
Proposed Solution | Just add the UTC time zone when formatting dates in getJSONArray(Query):
df.setTimeZone(TimeZone.getTimeZone("UTC"));
|
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0033496 | | closed | adrianromero | Wrong receipt time when loading paid receipts |
|
Attached Files | issue33265.diff (2,577) 2016-06-15 09:44 https://issues.openbravo.com/file_download.php?file_id=9524&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-06-15 09:41 | adrianromero | New Issue | |
2016-06-15 09:41 | adrianromero | Assigned To | => adrianromero |
2016-06-15 09:41 | adrianromero | OBNetwork customer | => Yes |
2016-06-15 09:41 | adrianromero | Resolution time | => 1466546400 |
2016-06-15 09:41 | adrianromero | Triggers an Emergency Pack | => No |
2016-06-15 09:41 | adrianromero | Status | new => scheduled |
2016-06-15 09:44 | adrianromero | File Added: issue33265.diff | |
2016-06-15 09:45 | adrianromero | Note Added: 0087285 | |
2016-06-17 10:16 | hgbot | Checkin | |
2016-06-17 10:16 | hgbot | Note Added: 0087383 | |
2016-06-17 10:16 | hgbot | Status | scheduled => resolved |
2016-06-17 10:16 | hgbot | Resolution | open => fixed |
2016-06-17 10:16 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1d10c17d8e96b3406ef49fb352a09d287386364a [^] |
2016-06-17 10:18 | adrianromero | Review Assigned To | => marvintm |
2016-06-23 13:39 | marvintm | Status | resolved => closed |
2016-07-19 12:42 | adrianromero | Relationship added | related to 0033496 |