Skip to content

Commit

Permalink
fixing next_year issue in show. Cant take args in Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Jan 19, 2011
1 parent 01b106d commit 908d154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_date(post)

show_date = nil

while (not show_date or (show_date < DateTime.now or show_date > DateTime.now.next_year(2))) and formats.size > 0
while (not show_date or (show_date < DateTime.now or show_date > DateTime.now.next_year.next_year)) and formats.size > 0
begin
format = formats.shift(1)[0]
for r_format in regexpFormats
Expand Down

0 comments on commit 908d154

Please sign in to comment.