incorrect date on invoice pdf

Invoice PDFs are generating the incorrect date, I have this on two sites both on 2.3.4 and en_GB locale e.g. $order->getCreatedAt() 2020-02-14 11:14:40 becomes $this->_localeDate->formatDate( $this->_localeDate->scopeDate( $order->getStore(), $order->getCreatedAt(), true ), \IntlDateFormatter::MEDIUM, false ) 13 August 2019 This is coming form: vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php Removing the scopeDate() function fixes it, but should I do this or is it…

Custom report for category data in magento2

I am trying to create a report for categories. Vendor/Module/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Vendor_Module’, __DIR__ ); Vendor/Module/etc/module.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd”> <module name=”Vendor_Module” setup_version=”1.0.0″></module> </config> Vendor/Module/etc/adminhtml/menu.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../Magento/Backend/etc/menu.xsd”> <menu> <add id=”Vendor_Module::seoreport” title=”Seo” translate=”title” module=”Vendor_Module” sortOrder=”40″ parent=”Magento_Reports::report” resource=”Vendor_Module::report”/> <add id=”Vendor_Module::index” title=”Category Meta Data” module=”Vendor_Module” sortOrder=”10″ action=”module/index” resource=”Vendor_Module::index” parent=”Vendor_Module::seoreport”/> </menu> Once the menu…