Permalink
Browse files

fix date/time for calendar events

  • Loading branch information...
maccman committed Jan 30, 2012
1 parent bea10cf commit 18e77a85a9ac143eb0d03e2d40c02d27468b14ce
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/google.rb
View
@@ -23,8 +23,9 @@ class Event
def initialize(result)
@link = result['htmlLink']
@name = result['summary']
- @start_at = result['start']['date']
- @end_at = result['end']['date']
+
+ @start_at = result['start']['dateTime']
+ @end_at = result['end']['dateTime']
@start_at = Time.parse(@start_at) if @start_at
@end_at = Time.parse(@end_at) if @end_at

0 comments on commit 18e77a8

Please sign in to comment.