Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* [#94](https://github.com/dblock/strava-ruby-client/pull/94): Adds video fields to `Strava::Models::Photo` - [@dblock](https://github.com/dblock).
* [#92](https://github.com/dblock/strava-ruby-client/pull/92): Fixes `Hashie::Trash` serialization warning for `object_id` of `Strava::Webhooks::Models::Event` - [@simonneutert](https://github.com/simonneutert).
* [#95](https://github.com/dblock/strava-ruby-client/pull/95): Fixed `club_events` returning `Strava::Models::ClubEvent` with an empty string in `created_at` - [@dblock](https://github.com/dblock).
* [#93](https://github.com/dblock/strava-ruby-client/pull/93): Updates GitHub Actions workflows - [@simonneutert](https://github.com/simonneutert).
* Your contribution here.

Expand Down
3 changes: 2 additions & 1 deletion lib/strava/models/club_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ClubEvent < Strava::Models::Response
property 'club', transform_with: ->(c) { Strava::Models::Club.new(c) }
property 'organizing_athlete', transform_with: ->(oa) { Strava::Models::Athlete.new(oa) }
property 'activity_type'
property 'created_at', transform_with: ->(v) { Time.parse(v) }
property 'created_at', transform_with: ->(v) { Time.parse(v) if v&.length&.positive? }
property 'route_id'
property 'route', transform_with: ->(r) { Strava::Models::Route.new(r) }
property 'women_only'
Expand All @@ -21,6 +21,7 @@ class ClubEvent < Strava::Models::Response
property 'upcoming_occurrences', transform_with: ->(upcoming) { upcoming.map { |o| Time.parse(o) } }
property 'zone'
property 'address'
property 'joined'
property 'start_latlng'

def strava_url
Expand Down
Loading