aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-22 13:33:27 -0400
committerBradley Taunt <bt@btxx.org>2024-07-22 13:33:27 -0400
commit4f7e8bc027aab9698394a27bbf2cdf60efde86ae (patch)
tree806d8863ca3f259842fba52996f841f1fc3e0228
parent69d6d04c2a9bd451eef7000a80da89e746ba376f (diff)
Fix UTC date rendering
-rw-r--r--wruby.rb2
1 files changed, 1 insertions, 1 deletions
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]