Skip to content

Commit

Permalink
Fixing more date issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Jan 19, 2011
1 parent 908d154 commit 5a85939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/models/show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def get_date(post)
end
end
rescue
puts $!
retry unless formats.size == 0
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/tasks/geronimo_sample_data.rake
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def make_shows
:password => "foobar",
:password_confirmation => "foobar")
admin.toggle!(:admin)
99.times do |n|
99.times do |n|
showtext = Faker::Lorem.sentence(10)
Show.new_from_post("show " + Date.today.next_day(n - 50).strftime('%m/%d/%y') + " " + showtext).save
Show.new_from_post("show " + (Date.today + (n - 50)).strftime('%m/%d/%y') + " " + showtext).save
end
end

Expand Down

0 comments on commit 5a85939

Please sign in to comment.