Skip to content

Commit cde9d7d

Browse files
committed
MAGETWO-70327: Customer admin grid incorrectly filters by Date of Birth field
1 parent 08ca3ee commit cde9d7d

File tree

1 file changed

+10
-2
lines changed
  • app/code/Magento/Ui/Component/Filters/Type

1 file changed

+10
-2
lines changed

app/code/Magento/Ui/Component/Filters/Type/Date.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ protected function applyFilter()
8383
$this->applyFilterByType(
8484
'gteq',
8585
$this->wrappedComponent->convertDate(
86-
$value['from'],0, 0, 0, !$this->getData('config/skipTimeZoneConversion')
86+
$value['from'],
87+
0,
88+
0,
89+
0,
90+
!$this->getData('config/skipTimeZoneConversion')
8791
)
8892
);
8993
}
@@ -92,7 +96,11 @@ protected function applyFilter()
9296
$this->applyFilterByType(
9397
'lteq',
9498
$this->wrappedComponent->convertDate(
95-
$value['to'], 23, 59, 59, !$this->getData('config/skipTimeZoneConversion')
99+
$value['to'],
100+
23,
101+
59,
102+
59,
103+
!$this->getData('config/skipTimeZoneConversion')
96104
)
97105
);
98106
}

0 commit comments

Comments
 (0)