From d2347828b765f5879cf288f72464283deabe9743 Mon Sep 17 00:00:00 2001 From: Frank DelPidio Date: Sat, 14 Oct 2017 23:09:40 -0400 Subject: [PATCH 1/2] Remove unnecessary * 1000 for date two_months_from_now --- lib/tasks/pull_events_from_meetup.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/pull_events_from_meetup.rake b/lib/tasks/pull_events_from_meetup.rake index ad3adf1..ed5efae 100644 --- a/lib/tasks/pull_events_from_meetup.rake +++ b/lib/tasks/pull_events_from_meetup.rake @@ -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 * 1000 + two_months_from_now = (Time.now + (60*24*60*60)).to_i event_sources.each do |source| response = meetup_api.events( From a078ffaad61ac1380f9399da272a05394eff5709 Mon Sep 17 00:00:00 2001 From: Frank DelPidio Date: Sat, 14 Oct 2017 23:33:06 -0400 Subject: [PATCH 2/2] Fix bug adding two months to Time.now --- lib/tasks/pull_events_from_meetup.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/pull_events_from_meetup.rake b/lib/tasks/pull_events_from_meetup.rake index ed5efae..1327f0b 100644 --- a/lib/tasks/pull_events_from_meetup.rake +++ b/lib/tasks/pull_events_from_meetup.rake @@ -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(