Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0044688Openbravo ERPA. Platformpublic2020-07-08 09:562020-07-27 11:18
Leyre 
cberner 
normalmajoralways
closedfixed 
5
 
PR20Q3PR20Q3 
alostale
Core
Production - Confirmed Stable
2019-09-23
3.0PR19Q4
https://gitlab.com/openbravo/product/openbravo/-/commit/4ec715bfa9c6bc0ab7b3e6f644ec05ef4998c721 [^]
No
0044688: The date is not displayed correctly in the "Costing Rules" window -> "Fix Backdated Transactions" process
The date is not displayed correctly in the "Costing Rules" window -> "Fix Backdated Transactions" process
Backend as System Administrator role:
1. "Process Definition" window -> Fix Backdated Transactions
2. "Parameter" tab -> Fix Backdated From
   2.1. Update "Default Value" = OB.formatDateTime(new Date())

Backend as F&B International Group Admin - F&B International Group role:
1. "Costing Rules" window -> Select one record and click on "Fix Backdated Transactions"

Actual result: Verify that the date shown is two hours less than the current date
Expected result: The date should be the same as the current date.
No tags attached.
blocks defect 0044574 closed cberner The date is not displayed correctly in the "Costing Rules" window -> "Fix Backdated Transactions" process 
Issue History
2020-07-27 09:58cbernerTypedefect => backport
2020-07-27 09:58cbernerTarget Version => PR20Q3
2020-07-27 11:06hgbotNote Added: 0121629
2020-07-27 11:10cbernerReview Assigned To => alostale
2020-07-27 11:18hgbotResolutionopen => fixed
2020-07-27 11:18hgbotStatusscheduled => closed
2020-07-27 11:18hgbotNote Added: 0121630
2020-07-27 11:18hgbotFixed in Version => PR20Q3
2020-07-27 11:18hgbotNote Added: 0121631

Notes
(0121629)
hgbot   
2020-07-27 11:06   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/115 [^]
(0121630)
hgbot   
2020-07-27 11:18   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/115 [^]
(0121631)
hgbot   
2020-07-27 11:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: e9df5d145d3660dd0be277e010ee7ac24927c734
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2020-07-27T11:04:25+02:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/e9df5d145d3660dd0be277e010ee7ac24927c734 [^]

Fixes ISSUE-44688: Format date using provided timezone in OBBindings#formatDate

Previously as a side-effect date was being converted to UTC wrongly in
OBBindings formatDate function.
This fixes it by formatting using the local timezone as was previously
done prior to the regression commit. Fixes display of date in some
parameter windows that were relying on it (e.g. Costing Rules).

Fixes regression introduced in commit 4ec715bf

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/OBBindings.java
---