RSS pubdate formatting

Is there a method to format RSS PUBDATE? The default presentation is not customer friendly: Wed, 14 Feb 2024 04:54:28 +0000

I tried editing my RSS feed, but that caused it to fail validation.

I see some code used in the Default Template subject line, but cannot figure out how to apply this in the body of the email.
Example: { feed.date|time_parse: « Monday 02 January 2006 » }

thanks!
TJ

Same problem here. I followed without success Brevo’s instructions at

When it comes to the DATE filter, none of their examples work in conjunction with PUBDATE.

Brevo RSS support is really lacking compared to Mailchimp. I wasted hours trying to replicate a RSS campaign from Mailchimp but I had to lower my expectations. A lot of Mailchimp RSS variables do not exist in Brevo.

Let’s see if Brevo fixes the PUBDATE format/filter issue or at least provides a working syntax example.

1 Like

Brevo support provided a solution. This is the syntax to include item.PUBDATE in the RSS campaign:

{{ item.PUBDATE | default: « Tue, 12 Mar 2024 14:48:25 +0000 » |
time_parse: « Mon, 2 Jan 2006 15:04:05 -0700 » | date: « Monday, Jan 2,
2006 » }}

1 Like

is it possible to incude this in the email object ?
Or is it only for the body ?

Hi Amanda, if for email object you mean for example the subject line, I am assuming it should work. If with email object you mean something else please clarify. Thank you.

1 Like

yes it was for email oject. thnk

Is it possible to change language ? I would like show pubdate in French

It should be. Try this and see if it works. If not you might need to tweak it:
{{ item.PUBDATE | default: « Tue, 12 Mar 2024 14:48:25 +0000 » |
time_parse: « Mon, 2 Jan 2006 15:04:05 -0700 » | date_i18n: « fr,Monday, Jan 2,
2006 » }}

Here you can find out more about the syntax that you can use:

2 Likes