aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-23 13:16:40 -0400
committerBradley Taunt <bt@btxx.org>2024-07-23 13:16:40 -0400
commitb3c07e06c57136bbcbec9b6fec13f7b5af099040 (patch)
tree04772bdec5086421b0bba5d32aee2c3684a8d1b2
parentd6dedf8c13eeb10998c2dcc930e7965c136ec338 (diff)
Fix offset to go forward, not backwards
-rw-r--r--wruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/wruby.rb b/wruby.rb
index ffbb1c6..b5c7fbe 100644
--- a/wruby.rb
+++ b/wruby.rb
@@ -123,7 +123,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 = DateTime.parse(post[:date].to_s).new_offset('-05:00')
+ date = DateTime.parse(post[:date].to_s).new_offset('+05:00')
item_link = "#{site_url}/#{posts_dir}/#{post[:link]}"
item_title = post[:title]
item_content = post[:content]