mirror of
https://git.sr.ht/~bt/wruby
synced 2024-09-28 15:21:02 +02:00
Force RSS time to set itself to midday, put original post date back
This commit is contained in:
parent
07aa8a0e7e
commit
c0404efaa8
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# Exploring Futurama: A Dive into the World of Tomorrow
|
||||
|
||||
2024-07-21
|
||||
2024-07-22
|
||||
|
||||
## Introduction
|
||||
|
||||
|
|
2
wruby.rb
2
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]
|
||||
|
|
Loading…
Reference in a new issue