Permalink
Browse files

use utc start time for strava logger

  • Loading branch information...
1 parent 774c02a commit 3e6b28cf86ba9441a4a47c6ec3bba46a530fd94d @darrinholst darrinholst committed Feb 19, 2014
Showing with 3 additions and 3 deletions.
  1. +2 −2 plugins_disabled/stravalogger.rb
  2. +1 −1 spec/plugins/stravalogger_spec.rb
@@ -65,7 +65,7 @@ def parse_feed(rss_feed)
begin
res = Net::HTTP.get_response(URI.parse(rss_feed))
rescue Exception => e
- raise "ERROR retrieving Strava ride list url: #{rss_feed}"
+ raise "ERROR retrieving Strava activity list url: #{rss_feed} - #{e}"
end
return false if res.nil?
@@ -113,7 +113,7 @@ def parse_feed(rss_feed)
options = {}
options['content'] = "#{output}#{tags}"
- options['datestamp'] = date.utc.iso8601
+ options['datestamp'] = Time.parse(activity['start_date']).iso8601
options['starred'] = false
options['uuid'] = %x{uuidgen}.gsub(/-/,'').strip
@@ -42,7 +42,7 @@
options = DayOne.to_dayone_options.first
options['uuid'].should_not be_nil
options['starred'].should be_false
- options['datestamp'].should == '2014-02-17T17:59:58Z'
+ options['datestamp'].should == '2014-02-17T23:59:58Z'
expected_content = <<-eos.unindent
# Strava Activity - 2.00 mi - 0h 31m 34s - 3.8 mph - Afternoon Walk

0 comments on commit 3e6b28c

Please sign in to comment.