-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
utcRfc822 filter changes my date taking timezone shift into consideration and printing 22h->24h.
"2024-04-24T22:12:03.284Z" -> Thu, 25 Apr 2024 24:12:03 GMT (should not do timezone shift and should not say 24:12:03 but even if there would be shift should be 00:12:03)
My frontmatter:
title: 'Spring AI: Getting Started 2'
date: "2024-04-24T22:12:03.284Z"
permalink: '/spring-ai-2/'
layout: "layouts/post"
My config:
eleventyConfig.addPlugin(feedPlugin, {
type: "rss", // or "rss", "json"
outputPath: "/feed.xml",
collection: {
name: "posts", // iterate over `collections.posts`
limit: 10, // 0 means no limit
},
metadata: {
language: "en",
title: "Blog Title",
subtitle: "This is a longer description about your blog.",
base: "https://example.com/",
author: {
name: "Your Name",
email: "", // Optional
}
}
});
Works in the same way with just using that filter in custom template.
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="https://example.com/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Blog Title</title>
<link>https://example.com/</link>
<atom:link href="https://example.com/feed.xml" rel="self" type="application/rss+xml" />
<description>This is a longer description about your blog.</description>
<language>en</language>
<item>
<title>Spring AI: Getting Started 5</title>
<link>https://example.com/spring-ai-5/</link>
<description><p>Your content here...</p>
</description>
<pubDate>Thu, 25 Apr 2024 24:12:03 GMT</pubDate>
<dc:creator>Your Name</dc:creator>
<guid>https://example.com/spring-ai-5/</guid>
</item>
</channel>
</rss>
I am using v2.0.nd following dependencies:
"dependencies": {
"@11ty/eleventy": "^3.1.2",
"@11ty/eleventy-plugin-rss": "^2.0.4",
"@11tyrocks/eleventy-plugin-sass-lightningcss": "^1.2.0"
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels