diff options
author | Bradley Taunt <bt@btxx.org> | 2024-07-24 10:22:01 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-07-24 10:22:01 -0400 |
commit | c0404efaa880c3cd545c65ce7a05cb2562ce4103 (patch) | |
tree | d8cf06bfe13148188a72a817014ff63ae096c7ae /wruby.rb | |
parent | 07aa8a0e7e259e6df438c3643dc18f0d6e0fa0c2 (diff) |
Force RSS time to set itself to midday, put original post date back
Diffstat (limited to 'wruby.rb')
-rw-r--r-- | wruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] |