{"action":"created","issue":{"url":"https://api.github.com/repos/dblock/slack-strava/issues/58","repository_url":"https://api.github.com/repos/dblock/slack-strava","labels_url":"https://api.github.com/repos/dblock/slack-strava/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/dblock/slack-strava/issues/58/comments","events_url":"https://api.github.com/repos/dblock/slack-strava/issues/58/events","html_url":"https://github.com/dblock/slack-strava/issues/58","id":385543443,"node_id":"MDU6SXNzdWUzODU1NDM0NDM=","number":58,"title":"Activity start time not showing in correct timezone ","user":{"login":"dblock","id":542335,"node_id":"MDQ6VXNlcjU0MjMzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/542335?v=4","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"labels":[{"id":885689647,"node_id":"MDU6TGFiZWw4ODU2ODk2NDc=","url":"https://api.github.com/repos/dblock/slack-strava/labels/confirmed%20bug","name":"confirmed bug","color":"e10c02","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-29T02:38:30Z","updated_at":"2018-11-29T02:54:10Z","closed_at":"2018-11-29T02:54:10Z","author_association":"OWNER","body":"```\r\n=> #<UserActivity _id: 5bff2079faf6fa00ec366f9b, created_at: 2018-11-28 23:10:49 UTC, updated_at: 2018-11-28 23:10:50 UTC, strava_id: \"1990206625\", name: \"Morning Run\", distance: 11771.3, description: nil, moving_time: 4191.0, elapsed_time: 4191.0, average_speed: 2.809, bragged_at: 2018-11-28 23:10:50 UTC, total_elevation_gain: 109.1, private: false, type: \"Run\", _type: \"UserActivity\", start_date: 2018-11-28 21:52:15 UTC, start_date_local: 2018-11-29 04:52:15 UTC, user_id: BSON::ObjectId('5bc9792bdfe37500ec41632b')>\r\n```\r\n\r\nhttps://www.strava.com/activities/1990206625\r\n\r\nShows as `Thursday, November 29, 4:52 AM`. The `strava_activity['timezone']` is \"(GMT+07:00) Asia/Bangkok\", so:\r\n\r\n```\r\nt = DateTime.parse(strava_activity['start_date_local'])\r\n=> Thu, 29 Nov 2018 04:52:15 +0000\r\n\r\nt.in_time_zone('Asia/Bangkok')\r\n=> Thu, 29 Nov 2018 11:52:15 +07 +07:00\r\n``` \r\n"},"comment":{"url":"https://api.github.com/repos/dblock/slack-strava/issues/comments/442687579","html_url":"https://github.com/dblock/slack-strava/issues/58#issuecomment-442687579","issue_url":"https://api.github.com/repos/dblock/slack-strava/issues/58","id":442687579,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjY4NzU3OQ==","user":{"login":"dblock","id":542335,"node_id":"MDQ6VXNlcjU0MjMzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/542335?v=4","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T02:54:10Z","updated_at":"2018-11-29T02:54:10Z","author_association":"OWNER","body":"Not a bug. This guy actually runs at 4:52AM, and `start_date_local` is correct."}}
{"actor":{"display_login":"dblock"}}