Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix date/time for calendar events

  • Loading branch information...
commit 18e77a85a9ac143eb0d03e2d40c02d27468b14ce 1 parent bea10cf
@maccman authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/google.rb
View
5 lib/google.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.