# Display correct UTC pubdate in RSS Feed plugin

**URL:** https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534
**Category:** Questions
**Tags:** v2
**Created:** [May 31, 2018, 3:36am UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534 "2018-05-31T03:36:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![allegra101](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@allegra101](https://forum.getkirby.com/u/allegra101)
#### Post date: [May 31, 2018, 3:36am UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534/1 "2018-05-31T03:36:59Z")

</div>

Hi all, I’m using the RSS feed plugin for Kirby to generate a feed which I’m then sending over to Mailchimp for newsletter distribution.

I’m running into an error because I want to send the newsletter out daily at 9:00pm EST which works out to 01:00am UTC. But in the RSS feed, my `pubdate` displays as “00:00:00 +0000” on the publication day regardless of when the article was created, which then messes up the RSS 24hr send because it thinks it was posted more than 24hrs prior.

How can I make sure that the `pubdate` in my RSS feed is reflecting the time at which the article was actually published?

---

<div class="post-metadata">

### Author: ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)
#### Post date: [May 31, 2018, 5:30am UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534/2 "2018-05-31T05:30:47Z")

</div>

How have you configured the feed? Have you set the datefield option to the name of your date field (default is date).

Have you set a date option in your config.php?

---

<div class="post-metadata">

### Author: ![allegra101](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@allegra101](https://forum.getkirby.com/u/allegra101)
#### Post date: [May 31, 2018, 5:38am UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534/3 "2018-05-31T05:38:33Z")

</div>

The feed isn’t configured, datefield shows as default `'datefield' => 'date',`

No date option in config… I’m pretty new at this.

Is there a way to give the article blueprint a ‘time’ for the feed to pull from?

---

<div class="post-metadata">

### Author: ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)
#### Post date: [May 31, 2018, 5:46am UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534/4 "2018-05-31T05:46:01Z")

</div>

What is the name of your datefield in your article blueprint? If it is date, everything should be fine. To add a time, you can use the [date time field](https://getkirby.com/docs/cheatsheet/panel-fields/datetime).

But the feed should show a correct publication date without a given time. This is what is looks like with the feed plugin installed in a fresh StarterKit:

 ![19](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/d/dae64936ec207cd125d7875be9bd51eca2eaa58f.jpg)

Could you post your article blueprint?

---

<div class="post-metadata">

### Author: ![allegra101](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@allegra101](https://forum.getkirby.com/u/allegra101)
#### Post date: [May 31, 2018, 6:18am UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534/5 "2018-05-31T06:18:44Z")

</div>

The date is working fine!

I just need the UTC timecode of what _time_ the article was created to display correctly in the XML feed, instead of 00:00:00. This is so my Mailchimp newsletter works properly, it’s time-sensitive.

So would I need to add a datetime field in the blueprint and then change the datefield in the feed plugin to “datetime” ?

This is my blueprint, just the default:

 ![03%20AM](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/1/1b0628e9c6dd5212d24a6b75faf06756133cc483.png)

---

<div class="post-metadata">

### Author: ![bvdputte](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bvdputte/32/8179_2.png) [@bvdputte](https://forum.getkirby.com/u/bvdputte)
#### Post date: [May 31, 2018, 9:10am UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534/6 "2018-05-31T09:10:21Z")

</div>

Yes, Use a `datetime` field type.

And don’t forget to set your time zone in config.php (e.g. `c::set('timezone','Europe/Brussels');`). If you don’t do this, then PHP would render the time as the time zone has been setup on your webserver.

---

<div class="post-metadata">

### Author: ![allegra101](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@allegra101](https://forum.getkirby.com/u/allegra101)
#### Post date: [May 31, 2018, 5:09pm UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534/7 "2018-05-31T17:09:05Z")

</div>

> [@bvdputte](#):
>
> c::set(‘timezone’,‘Europe/Brussels’);

Perfect! It’s all working now. thanks so much for the help!

---

<div class="post-metadata">

### Author: ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)
#### Post date: [February 6, 2025, 5:28pm UTC](https://forum.getkirby.com/t/display-correct-utc-pubdate-in-rss-feed-plugin/10534/8 "2025-02-06T17:28:07Z")

</div>


