RSS feed plugin: issue with <pubDate> and strftime

Config: Kirby 2.4.1 & RSS Feed Plugin (https://github.com/getkirby-plugins/feed-plugin)

Problem: If I use “c::set(‘date.handler’, ‘strftime’);” in the config file, the RSS plugin displays a

<pubDate>r</pubDate>

in the feed (Tested with the W3C-Validator).

A correct behaviour should be something like this:

<pubDate>Thu, 18 May 2017 00:00:00 +0000</pubDate>.

How can I use the RSS feed plugin AND the “c::set(‘date.handler’, ‘strftime’);” to produce a valid pubDate for the feed?

If you change line 20 in site/plugins/feed/template.php like this:

<pubDate><?php echo $datefield == 'modified' ? date('r', (int)$item->modified()) : date('r', (int)$item->date()) ?></pubDate>

it should work with strftime.

Nice! It works now correct with and without the option “c::set(‘date.handler’, ‘strftime’);”!
Thank You!