0

I created a php file external to Magento2 with a foreach that takes the value of the "news_from_date" attribute. On many products the "news_from_date" field is empty but despite this the value that is printed to me is always a date.

For instance: Backend: Product with SKU AF5467 has no value in the news_from_date attribute Frontend: When I print the cron product AF5467 has the value 2021-10-12 00:00:00

Why is it that even if the news_from_date attribute is empty, the cron that I created always prints me a value?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.