aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-22 13:44:01 -0400
committerBradley Taunt <bt@btxx.org>2024-07-22 13:44:01 -0400
commitcb97c3661e3c63b9fa40af375e5c59e037df1c2c (patch)
tree01ee89bfead4adc2c0eb6f4b49c84417ba715f93
parent298a8d1bc1d1b58ee3e7beb2342866732e7f0331 (diff)
Fix odd rendering of UTC dates for RSS feed
-rw-r--r--wruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/wruby.rb b/wruby.rb
index e47790b..1118169 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]