Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0044690Openbravo ERPA. Platformpublic2020-07-08 09:562020-07-27 11:18
Leyre 
cberner 
normalmajoralways
closedfixed 
5
 
PR20Q1.3PR20Q1.3 
alostale
Core
Production - Confirmed Stable
2019-09-23
3.0PR19Q4
https://gitlab.com/openbravo/product/openbravo/-/commit/4ec715bfa9c6bc0ab7b3e6f644ec05ef4998c721 [^]
No
0044690: 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 => PR20Q1.3
2020-07-27 11:02hgbotNote Added: 0121627
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: 0121634
2020-07-27 11:18hgbotFixed in Version => PR20Q1.3
2020-07-27 11:18hgbotNote Added: 0121635

Notes
(0121627)
hgbot   
2020-07-27 11:02   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/113 [^]
(0121634)
hgbot   
2020-07-27 11:18   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/113 [^]
(0121635)
hgbot   
2020-07-27 11:18   
Directly closing issue as related merge request is already approved.

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

Fixes ISSUE-44690: 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
---