Skip to content

Commit

Permalink
Fix bug adding two months to Time.now
Browse files Browse the repository at this point in the history
  • Loading branch information
fdel15 committed Oct 15, 2017
1 parent d234782 commit a078ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/pull_events_from_meetup.rake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace :events do

def get_and_load_events(event_sources)
meetup_api = MeetupApi.new
two_months_from_now = (Time.now + (60*24*60*60)).to_i
two_months_from_now = (Time.now + 2.months).to_i

event_sources.each do |source|
response = meetup_api.events(
Expand Down

0 comments on commit a078ffa

Please sign in to comment.