laminas / laminas-feed

Consume and generate Atom and RSS feeds, and interact with Pubsubhubbub.
https://docs.laminas.dev/laminas-feed/
BSD 3-Clause "New" or "Revised" License
138 stars 25 forks source link

DateTime::createFromFormat(): Argument #2 ($datetime) must be of type string, bool given #78

Open rajjanorkar opened 1 year ago

rajjanorkar commented 1 year ago

Bug Report

Q A
Version(s) 2.21.0

Summary

DateTime::createFromFormat(): Argument #2 ($datetime) must be of type string, bool given {"exception":"[object] (TypeError(code: 0): DateTime::createFromFormat(): Argument #2 ($datetime) must be of type string, bool given at /var/www/html/releases/2/vendor/laminas/laminas-feed/src/Reader/Feed/Rss.php:285)

Current behavior

image

How to reproduce

I am searching for the feed it failed, will post the feed url later!

Expected behavior

Should not throw exception.

froschdesign commented 1 year ago

I am searching for the feed it failed, will post the feed url later!

Can you provide the Feed URL to reproduce the problem? The related class already handles the different and wrong date formats, so it would be interesting to know which format is used here. Thanks in advance! 👍