Skip to content

Commit

Permalink
fixed date time issues (next_day missing on heroku servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Jan 18, 2011
1 parent 1b4625a commit bfc79f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class Show < ActiveRecord::Base
class << self

def next_show()
Show.where("showdate > ?", DateTime.now.next_day(-1)).order("showdate ASC").first
Show.where("showdate > ?", Date.today.yesterday).order("showdate ASC").first
end

def upcoming_shows()
Show.where("showdate > ?", DateTime.now.next_day(-1)).order("showdate ASC")
Show.where("showdate > ?", Date.today.yesterday).order("showdate ASC")
end

def past_shows()
Expand Down

0 comments on commit bfc79f5

Please sign in to comment.