Skip to content

Commit 55f401c

Browse files
committed
ACP2E-2127: Date filter is not working in admin grid.
- Addressed the CR comments.
1 parent 5147420 commit 55f401c

File tree

2 files changed

+29
-9
lines changed
  • app/code/Magento/Customer

2 files changed

+29
-9
lines changed

app/code/Magento/Customer/Test/Unit/Ui/Component/Form/Element/DataType/DateTest.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
<?php
2-
3-
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
2+
/************************************************************************
3+
*
4+
* Copyright 2023 Adobe
5+
* All Rights Reserved.
6+
*
7+
* NOTICE: All information contained herein is, and remains
8+
* the property of Adobe and its suppliers, if any. The intellectual
9+
* and technical concepts contained herein are proprietary to Adobe
10+
* and its suppliers and are protected by all applicable intellectual
11+
* property laws, including trade secret and copyright laws.
12+
* Dissemination of this information or reproduction of this material
13+
* is strictly forbidden unless prior written permission is obtained
14+
* from Adobe.
15+
* ************************************************************************
616
*/
717
declare(strict_types=1);
818

app/code/Magento/Customer/Ui/Component/Form/Element/DataType/Date.php

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
<?php
2-
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
2+
/************************************************************************
3+
*
4+
* Copyright 2023 Adobe
5+
* All Rights Reserved.
6+
*
7+
* NOTICE: All information contained herein is, and remains
8+
* the property of Adobe and its suppliers, if any. The intellectual
9+
* and technical concepts contained herein are proprietary to Adobe
10+
* and its suppliers and are protected by all applicable intellectual
11+
* property laws, including trade secret and copyright laws.
12+
* Dissemination of this information or reproduction of this material
13+
* is strictly forbidden unless prior written permission is obtained
14+
* from Adobe.
15+
* ************************************************************************
516
*/
617
declare(strict_types=1);
718

@@ -12,7 +23,7 @@
1223
use Magento\Framework\Stdlib\DateTime\Intl\DateFormatterFactory;
1324

1425
/**
15-
* Format the filtered date in customer grid based on specific locale
26+
* Format the filtered date in UI grid based on specific locale
1627
*/
1728
class Date
1829
{
@@ -57,7 +68,6 @@ public function beforeConvertDate(
5768
$formatter->getPattern()
5869
);
5970
}
60-
$formatter->setLenient(true);
6171
return [$date, $hour, $minute, $second, $setUtcTimeZone];
6272
}
6373
}

0 commit comments

Comments
 (0)