fixes #935
This commit is contained in:
@@ -8,19 +8,19 @@ module PostSetPresenters
|
||||
end
|
||||
|
||||
def prev_day
|
||||
date - 1
|
||||
date - 1.day
|
||||
end
|
||||
|
||||
def next_day
|
||||
date + 1
|
||||
date + 1.day
|
||||
end
|
||||
|
||||
def prev_week
|
||||
date - 7
|
||||
date - 7.days
|
||||
end
|
||||
|
||||
def next_week
|
||||
date + 7
|
||||
date + 7.days
|
||||
end
|
||||
|
||||
def prev_month
|
||||
@@ -111,7 +111,7 @@ module PostSetPresenters
|
||||
def range_text
|
||||
if min_date == max_date
|
||||
date.strftime("%B %d, %Y")
|
||||
elsif max_date - min_date == 6
|
||||
elsif max_date - min_date < 10.days
|
||||
min_date.strftime("Week of %B %d, %Y")
|
||||
else
|
||||
date.strftime("%B %Y")
|
||||
|
||||
@@ -4,4 +4,5 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config',
|
||||
|
||||
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
||||
ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id where updater_id is null")
|
||||
ActiveRecord::Base.connection.execute("update forum_posts set updater_id = creator_id where updater_id is null")
|
||||
ActiveRecord::Base.connection.execute("update tags set post_count = 0 where post_count < 0")
|
||||
|
||||
Reference in New Issue
Block a user