From 94e6270457494bd2ca708856d930f42f4e6b7118 Mon Sep 17 00:00:00 2001 From: Landon Wilkins Date: Mon, 10 Aug 2015 17:35:30 -0600 Subject: [PATCH] Update calendar.rb --- samples/calendar/calendar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/calendar/calendar.rb b/samples/calendar/calendar.rb index 3c665c36a..e35788a5d 100644 --- a/samples/calendar/calendar.rb +++ b/samples/calendar/calendar.rb @@ -33,7 +33,7 @@ puts "Created event '#{event.summary}' (#{event.id})" events = calendar.list_events('primary', max_results: 10, single_events: true, order_by: 'startTime', time_min: Time.now.iso8601) puts "Upcoming events:" -events.items.each do |evt| +events.items.each do |event| start = event.start.date || event.start.date_time puts "- #{event.summary} (#{start}) (ID: #{event.id})" end