Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0044689Openbravo ERPA. Platformpublic2020-07-08 09:562020-07-27 11:18
Leyre 
cberner 
normalmajoralways
closedfixed 
5
 
PR20Q2.1PR20Q2.1 
alostale
Core
Production - Confirmed Stable
2019-09-23
3.0PR19Q4
https://gitlab.com/openbravo/product/openbravo/-/commit/4ec715bfa9c6bc0ab7b3e6f644ec05ef4998c721 [^]
No
0044689: 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 => PR20Q2.1
2020-07-27 11:03hgbotNote Added: 0121628
2020-07-27 11:10cbernerReview Assigned To => alostale
2020-07-27 11:18hgbotNote Added: 0121632
2020-07-27 11:18hgbotResolutionopen => fixed
2020-07-27 11:18hgbotStatusscheduled => closed
2020-07-27 11:18hgbotFixed in Version => PR20Q2.1
2020-07-27 11:18hgbotNote Added: 0121633

Notes
(0121628)
hgbot   
2020-07-27 11:03   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/114 [^]
(0121632)
hgbot   
2020-07-27 11:18   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/114 [^]
(0121633)
hgbot   
2020-07-27 11:18   
Directly closing issue as related merge request is already approved.

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

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