From cb97c3661e3c63b9fa40af375e5c59e037df1c2c Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 22 Jul 2024 13:44:01 -0400 Subject: Fix odd rendering of UTC dates for RSS feed --- wruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wruby.rb b/wruby.rb index e47790b..1118169 100644 --- a/wruby.rb +++ b/wruby.rb @@ -93,7 +93,7 @@ def generate_rss(posts, rss_file, author_name, site_name, site_url, posts_dir) maker.channel.link = site_url posts.each do |post| - date = post[:date].utc + date = DateTime.parse(post[:date].to_s).to_time.utc item_link = "#{site_url}/#{posts_dir}/#{post[:link]}" item_title = post[:title] item_content = post[:content] -- cgit v1.2.3-54-g00ecf