From c0404efaa880c3cd545c65ce7a05cb2562ce4103 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Wed, 24 Jul 2024 10:22:01 -0400 Subject: Force RSS time to set itself to midday, put original post date back --- posts/futurama.md | 2 +- wruby.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posts/futurama.md b/posts/futurama.md index 71c7596..c858664 100644 --- a/posts/futurama.md +++ b/posts/futurama.md @@ -1,6 +1,6 @@ # Exploring Futurama: A Dive into the World of Tomorrow -2024-07-21 +2024-07-22 ## Introduction diff --git a/wruby.rb b/wruby.rb index b17bca2..d4f49e6 100644 --- a/wruby.rb +++ b/wruby.rb @@ -112,7 +112,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 = Date.parse(post[:date].to_s).to_time + date = Date.parse(post[:date].to_s).to_time + 12*60*60 # Force time to midday item_link = "#{site_url}/#{posts_dir}/#{post[:link]}" item_title = post[:title] item_content = post[:content] -- cgit v1.2.3-54-g00ecf