Skip to content

Commit

Permalink
Updating BlogLogger most popular to use @date_format
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed May 4, 2013
1 parent d61cf33 commit a1626c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/BlogLogger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def parse_feed(rss_feed)
}
unless posts.empty?
options = {}
options['content'] = "## Most Tweeted posts on #{rss.title.content} for #{Time.now.strftime('%b %d, %Y')}\n\n"
options['content'] = "## Most Tweeted posts on #{rss.title.content} for #{Time.now.strftime(@date_format)}\n\n"
posts.sort_by { |post| post['count'] }.reverse[0..5].each {|post|
options['content'] += "* [#{post['title']}](#{post['url']}) (#{post['count']})\n"
}
Expand Down

0 comments on commit a1626c8

Please sign in to comment.