Skip to content

Commit

Permalink
Fix event helper to display multi-day events that have already started
Browse files Browse the repository at this point in the history
  • Loading branch information
Lance committed Dec 8, 2010
1 parent 8d2d4f8 commit 7f44c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/plugins/events/app/helpers/events_helper.rb
Expand Up @@ -42,7 +42,7 @@ def self.last_update

def self.load_events
begin
@@event_cache = {:updated=>Time.now, :events=>EventBright::User.new(EVENT_BRIGHT_USER_KEY).events[0..6].select {|e|DateTime.parse(e.start_date) > Time.now}}
@@event_cache = {:updated=>Time.now, :events=>EventBright::User.new(EVENT_BRIGHT_USER_KEY).events[0..6].select {|e|DateTime.parse(e.end_date) > Time.now}}
rescue EventBright::Error => e
puts "Cannot load events: #{e.message}"
end
Expand All @@ -52,4 +52,4 @@ def self.load_events
end
end

Shovelpunks::Events.load_events
Shovelpunks::Events.load_events

0 comments on commit 7f44c92

Please sign in to comment.