Skip to content

Commit

Permalink
Fix: Dates Parameter in Smart Browser (adempiere#1849)
Browse files Browse the repository at this point in the history
* Fix: Dates Parameter in Smart Browser

* Update dateFormat.js

---------

Co-authored-by: Edwin Betancourt <[email protected]>
  • Loading branch information
elsiosanchez and EdwinBetanc0urt authored Jan 16, 2024
1 parent 9d827d5 commit 6941f65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/ADempiere/formatValue/dateFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ export function getValidDate(value) {
date = new Date()
} else if (typeof value === 'string') {
// TODO: Verify it time zone
if (value.length <= 10) {
value += 'T00:00:00' // without time zone
}
// if (value.length <= 10) {
// value += 'T00:00:00' // without time zone
// }
date = new Date(value)
} else if (typeof value === 'number') {
date = new Date(value)
Expand Down

0 comments on commit 6941f65

Please sign in to comment.