From 4f7e8bc027aab9698394a27bbf2cdf60efde86ae Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 22 Jul 2024 13:33:27 -0400 Subject: Fix UTC date rendering --- wruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wruby.rb b/wruby.rb index 9714d61..4ee60df 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