Openbravo Issue Tracking System - POS2
View Issue Details
0051215POS2POSpublic2022-12-20 21:212022-12-21 10:14
jlopez 
jlopez 
normaltrivialhave not tried
closedfixed 
5
 
23Q1 
No
0051215: Modify method to retrieve today's date at start of day
It is required to change the method to retrieve today's date at the beginning of the day to the new truncated method, created in the OBDateUtils.java class.
*
Replace the following statement:

Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());

For this:

OBDateUtils.truncate(new Date());
No tags attached.
related to feature request 0049618 closed jlopez Openbravo ERP Provide a method in OBDateUtils to retrieve todays date at start of day 
Issue History
2022-12-20 21:21jlopezNew Issue
2022-12-20 21:21jlopezAssigned To => jlopez
2022-12-20 21:21jlopezTriggers an Emergency Pack => No
2022-12-20 21:34hgbotNote Added: 0144851
2022-12-21 09:50aferrazCategoryCore => POS
2022-12-21 09:50aferrazTypebackport => defect
2022-12-21 09:50aferrazRelationship addedrelated to 0049618
2022-12-21 10:14hgbotResolutionopen => fixed
2022-12-21 10:14hgbotStatusnew => closed
2022-12-21 10:14hgbotFixed in Version => 23Q1
2022-12-21 10:14hgbotNote Added: 0144867
2022-12-21 10:14hgbotNote Added: 0144868

Notes
(0144851)
hgbot   
2022-12-20 21:34   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1426 [^]
(0144867)
hgbot   
2022-12-21 10:14   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: fc6ff92279de3018ca10f25610aa89c40a357075
Author: Javier López <javier.lopez@precognis.com>
Date: 20-12-2022 21:31:47
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/fc6ff92279de3018ca10f25610aa89c40a357075 [^]

Fixes ISSUE-51215: Modify method to retrieve today's date at start of day

---
M src/org/openbravo/pos2/event/RegularStoreSetEventHandler.java
M src/org/openbravo/pos2/process/ImportStoreSet.java
---
(0144868)
hgbot   
2022-12-21 10:14   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1426 [^]