commit - 31bcf536495fc51622a35cb278d5ca3248c56fdf
commit + 5e4710d5e57ff7b436df50510d199fb87e2c611b
blob - c9924c6fe0080e4ac45d61f4aa10bbe5f16231d9
blob + e7cff3009eedf0fec52b0ed40b3eded9d47518b6
--- wruby.rb
+++ wruby.rb
maker.channel.link = site_url
posts.each do |post|
- date = DateTime.parse(post[:date].to_s).to_time.utc
+ date = DateTime.parse(post[:date].to_s).to_time
item_link = "#{site_url}/#{posts_dir}/#{post[:link]}"
item_title = post[:title]
item_content = post[:content]
maker.items.new_item do |item|
item.link = item_link
item.title = item_title
- item.updated = date.to_s
- item.pubDate = date.rfc822
+ item.updated = date.utc.to_s
+ item.pubDate = date.utc.rfc822
item.description = item_content
end
end