Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025838Openbravo ERPA. Platformpublic2014-02-26 09:512014-02-28 19:50
AugustoMauch 
AugustoMauch 
immediatemajorhave not tried
closedfixed 
5
 
3.0PR14Q23.0PR14Q2 
shankarb
Core
Production - Confirmed Stable
2013-09-11
https://code.openbravo.com/erp/devel/pi/rev/290c9b12a211 [^]
No
0025838: Time fields are still not working properly in timezones with negative offsets
When a time field is saved from a timezone with a negative offset, its value is not being properly shown in the client when an existing record is opened in form view.
From a timezone with negative offset (i.e. Monreal, GMT-5):
- Open Process Request
- Start creating a new record in form view
- Set Run Later in the Timing Combo
- Set 10:00:00 in the Start Time field
- Save. The proper value will be saved in the database and the value shown to the user will be proper.
- Open the grid view, and open again the selected record in form view.
- The Start Time value has changed.
No tags attached.
related to defect 00258273.0PR14Q2 closed AugustoMauch Time fields are not working properly in timezones with negative offsets 
related to defect 0038661 closed caristu Problem with tabs with 'Time' fields 
Issue History
2014-02-26 09:51AugustoMauchNew Issue
2014-02-26 09:51AugustoMauchAssigned To => AugustoMauch
2014-02-26 09:51AugustoMauchModules => Core
2014-02-26 09:51AugustoMauchTriggers an Emergency Pack => No
2014-02-26 09:51AugustoMauchRelationship addedrelated to 0025827
2014-02-26 09:52AugustoMauchRegression level => Production - Confirmed Stable
2014-02-26 09:52AugustoMauchRegression date => 2013-09-11
2014-02-26 09:52AugustoMauchRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/290c9b12a211 [^]
2014-02-26 09:56AugustoMauchIssue Monitored: shankarb
2014-02-26 09:56AugustoMauchReview Assigned To => shankarb
2014-02-26 10:09hgbotCheckin
2014-02-26 10:09hgbotNote Added: 0064594
2014-02-26 10:09hgbotStatusnew => resolved
2014-02-26 10:09hgbotResolutionopen => fixed
2014-02-26 10:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d3337dfe6180201ad46ab07dce3a5de2c6636de4 [^]
2014-02-26 10:21hgbotCheckin
2014-02-26 10:21hgbotNote Added: 0064596
2014-02-26 10:51hgbotCheckin
2014-02-26 10:51hgbotNote Added: 0064602
2014-02-26 11:59shankarbNote Added: 0064605
2014-02-26 11:59shankarbStatusresolved => closed
2014-02-26 11:59shankarbFixed in Version => 3.0MP32
2014-02-26 19:43hudsonbotCheckin
2014-02-26 19:43hudsonbotNote Added: 0064638
2014-02-28 19:50hudsonbotCheckin
2014-02-28 19:50hudsonbotNote Added: 0064686
2014-02-28 19:50hudsonbotCheckin
2014-02-28 19:50hudsonbotNote Added: 0064687
2018-06-01 09:19caristuRelationship addedrelated to 0038661

Notes
(0064594)
hgbot   
2014-02-26 10:09   
Repository: erp/devel/pi
Changeset: d3337dfe6180201ad46ab07dce3a5de2c6636de4
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 26 10:05:46 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d3337dfe6180201ad46ab07dce3a5de2c6636de4 [^]

Fixes issue 25838: Time fields work properly in timezones with negative offsets

There was a problem the todays date was assigned to a datetime:

Original date: 31/12/2013 10:00:00
Todays date: 25/02/2014

The assignment order was year, month day, so the datetime was transformed like this:
Year updated: 31/12/2014 10:00:00
Month updated: 31/02/2014 does not exists, so it is converted to 03/03/2014
Day updated: 25/03/2014

This has been fixed by changing the updating order to Day, Month, Year. Before the update the date month is set to January to prevent setting a day not supported by the current month.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0064596)
hgbot   
2014-02-26 10:21   
Repository: erp/devel/pi
Changeset: 44671c4c2901e88c6119b63785e8fb1b554c6a90
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 26 10:20:31 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/44671c4c2901e88c6119b63785e8fb1b554c6a90 [^]

Related to issue 25838:Avoids accessing a property of an undefined object

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
---
(0064602)
hgbot   
2014-02-26 10:51   
Repository: erp/devel/pi
Changeset: 62c6d119b8f87f48a4dd49a3044b8cdc0360c219
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 26 10:51:11 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/62c6d119b8f87f48a4dd49a3044b8cdc0360c219 [^]

Related to issue 25838:Avoids accessing a property of an undefined object

The check (if data[this.name]) to avoid accessing a property of data[this.name], that can be undefined, has been moved from here

 if (this.getValue() !== data[this.name]) {

to here

data[this.name].getFullYear() <= 1970)

It did not make sense to make the check in the outer if clause, because that would disable setting a null value for this property from the datasource.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
---
(0064605)
shankarb   
2014-02-26 11:59   
Code reviewed and verified in pi changeset b2b40bda6f96.
(0064638)
hudsonbot   
2014-02-26 19:43   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/12811c036202 [^]
Maturity status: Test
(0064686)
hudsonbot   
2014-02-28 19:50   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/2a3305b1338e [^]
Maturity status: Test
(0064687)
hudsonbot   
2014-02-28 19:50   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/2a3305b1338e [^]
Maturity status: Test