File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/code/Magento/Reports/Model/Resource/Order
dev/tools/performance-toolkit/fixtures Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -900,8 +900,8 @@ public function addCreateAtPeriodFilter($period)
900
900
$ this ->addFieldToFilter (
901
901
$ fieldToFilter ,
902
902
[
903
- 'from ' => $ from ->format (\Magento \Framework \Stdlib \DateTime::DATETIME_INTERNAL_FORMAT ),
904
- 'to ' => $ to ->format (\Magento \Framework \Stdlib \DateTime::DATETIME_INTERNAL_FORMAT )
903
+ 'from ' => $ from ->format (\Magento \Framework \Stdlib \DateTime::DATETIME_PHP_FORMAT ),
904
+ 'to ' => $ to ->format (\Magento \Framework \Stdlib \DateTime::DATETIME_PHP_FORMAT )
905
905
]
906
906
);
907
907
Original file line number Diff line number Diff line change @@ -190,7 +190,9 @@ public function execute()
190
190
$ country = 'US ' ;
191
191
$ zip = '11111 ' ;
192
192
$ phone = '911 ' ;
193
- $ time = date ("Y-m-d h:i:s " );
193
+ $ dateStart = new \DateTime ();
194
+ $ dateStart ->setTimezone (new \DateTimeZone ('Etc/UTC ' ));
195
+ $ time = $ dateStart ->format (\Magento \Framework \Stdlib \DateTime::DATETIME_PHP_FORMAT );
194
196
195
197
$ simpleProductIdLen [0 ] = strlen ($ simpleProductId [0 ]($ entityId ));
196
198
$ simpleProductIdLen [1 ] = strlen ($ simpleProductId [1 ]($ entityId ));
You can’t perform that action at this time.
0 commit comments