Notes |
|
|
The problem is in FIC which is not properly calculating classicValue property
OK
"EM_Obpf_Stddatetime": {
"value": "2014-11-12T08:12:59.0Z",
"classicValue": "12.11.2014 08:12:59"
},
FAIL
"EM_Obpf_Stddatetime": {
"value": "2014-11-12T12:12:59.0Z",
"classicValue": "12.11.2014 12:12:59"
}, |
|
|
(0071753)
|
hgbot
|
2014-11-18 11:52
|
|
Repository: erp/devel/pi
Changeset: a86294635ce386152bb473773b0c9ba45f81fa81
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Nov 18 11:51:24 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a86294635ce386152bb473773b0c9ba45f81fa81 [^]
fixed bug 27628: date-time fields hidden in grid are not converted to proper tz
When date time fields were hidden in grid and server and client were in different
time zones, there were modifications in the time when moving to form view.
The problem was FIC returned time in server's local time as it was read from DB.
The fix:
-FIC returns time in UTC
-processFICReturn does the conversion
-When invoking FIC UTC transformation is done (covers case of shown columns in grid)
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/DateTimeUIDefinition.java
---
|
|
|
|
For all these cases
-Client and server same timezone
-Client and server positive timezone difference
-Client and server negative timezone difference
-24hr time format
-12hr (am/pm) time format
-Relative date-time reference (the one reported as buggy)
-Absolute date-time
-Relative time
-Absolute time
-Hidding columns from grid
-Showing columns in grid
Tested
-Creating a record and refreshing
-From grid to form view navigation
-Rereshing
-Editing in grid
-Editing in form
In all the cases
-same values are kept
-in case of relative time/date-time correct timezone transformations are done
-in case of absolute time/date-time no transformation is done having client/server in different timezones |
|
|
|
|
|
(0071998)
|
hgbot
|
2014-11-25 15:46
|
|
Repository: erp/devel/pi
Changeset: 2c2841f894b42fdf358281c2d13af06452c788d6
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Nov 25 15:44:05 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2c2841f894b42fdf358281c2d13af06452c788d6 [^]
Fixes issue 28265, fixes issue 27628: Prevents exception when parsing date
Instead of converting the date to String and then parsing it back to Date, just pass the Date object as a parameter to the convertLocalTimeToUTC method
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/DateTimeUIDefinition.java
---
|
|
|
(0071999)
|
hgbot
|
2014-11-25 15:46
|
|
Repository: erp/devel/pi
Changeset: d8acdd64b6bf08189eb7616f2ac1e3db2ae0b98a
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Nov 25 15:45:15 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d8acdd64b6bf08189eb7616f2ac1e3db2ae0b98a [^]
Related with issue 27628: Renames method to convertLocalDateTimeToUTC
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/DateTimeUIDefinition.java
---
|
|
|
|
Code reviewed and verified in pi@d8acdd64b6bf |
|
|
|
|
|
|
|
|
|
|