{"action":"created","issue":{"url":"https://api.github.com/repos/MiniProfiler/rack-mini-profiler/issues/333","repository_url":"https://api.github.com/repos/MiniProfiler/rack-mini-profiler","labels_url":"https://api.github.com/repos/MiniProfiler/rack-mini-profiler/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/MiniProfiler/rack-mini-profiler/issues/333/comments","events_url":"https://api.github.com/repos/MiniProfiler/rack-mini-profiler/issues/333/events","html_url":"https://github.com/MiniProfiler/rack-mini-profiler/pull/333","id":296193460,"number":333,"title":"Fix page start time","user":{"login":"superiorlu","id":1154692,"avatar_url":"https://avatars2.githubusercontent.com/u/1154692?v=4","gravatar_id":"","url":"https://api.github.com/users/superiorlu","html_url":"https://github.com/superiorlu","followers_url":"https://api.github.com/users/superiorlu/followers","following_url":"https://api.github.com/users/superiorlu/following{/other_user}","gists_url":"https://api.github.com/users/superiorlu/gists{/gist_id}","starred_url":"https://api.github.com/users/superiorlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superiorlu/subscriptions","organizations_url":"https://api.github.com/users/superiorlu/orgs","repos_url":"https://api.github.com/users/superiorlu/repos","events_url":"https://api.github.com/users/superiorlu/events{/privacy}","received_events_url":"https://api.github.com/users/superiorlu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-11T14:19:55Z","updated_at":"2018-02-13T05:46:01Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/MiniProfiler/rack-mini-profiler/pulls/333","html_url":"https://github.com/MiniProfiler/rack-mini-profiler/pull/333","diff_url":"https://github.com/MiniProfiler/rack-mini-profiler/pull/333.diff","patch_url":"https://github.com/MiniProfiler/rack-mini-profiler/pull/333.patch"},"body":"hi, i  find the profiler ui on `includes.tmpl`, the start time is not correct, it use `Process.clock_gettime` for initialize `Date`, so i  do that:\r\n``` ruby\r\n# page.rb\r\ndef initialize\r\n  ...\r\n  started_at   = (Time.now.to_f * 1000).to_i\r\n  started      = (Process.clock_gettime(Process::CLOCK_MONOTONIC) * 1000).to_i\r\n  ...\r\nend\r\n\r\n...\r\n\r\ndef extra_json\r\n  ....\r\n  :started   => '/Date(%d)/' % @attributes.delete(:started_at)\r\n  ... \r\nend\r\n```\r\ni hope that have a suggestion from you soon. thanks."},"comment":{"url":"https://api.github.com/repos/MiniProfiler/rack-mini-profiler/issues/comments/365157808","html_url":"https://github.com/MiniProfiler/rack-mini-profiler/pull/333#issuecomment-365157808","issue_url":"https://api.github.com/repos/MiniProfiler/rack-mini-profiler/issues/333","id":365157808,"user":{"login":"superiorlu","id":1154692,"avatar_url":"https://avatars2.githubusercontent.com/u/1154692?v=4","gravatar_id":"","url":"https://api.github.com/users/superiorlu","html_url":"https://github.com/superiorlu","followers_url":"https://api.github.com/users/superiorlu/followers","following_url":"https://api.github.com/users/superiorlu/following{/other_user}","gists_url":"https://api.github.com/users/superiorlu/gists{/gist_id}","starred_url":"https://api.github.com/users/superiorlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superiorlu/subscriptions","organizations_url":"https://api.github.com/users/superiorlu/orgs","repos_url":"https://api.github.com/users/superiorlu/repos","events_url":"https://api.github.com/users/superiorlu/events{/privacy}","received_events_url":"https://api.github.com/users/superiorlu/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T05:46:01Z","updated_at":"2018-02-13T05:46:01Z","author_association":"NONE","body":"Yes, you are right,  i have deleted `started_at` field from json, only keep `started` field. \r\nThe `started_at` is not only for UI, but also is a timestamp for page. "}}
{"actor":{"display_login":"superiorlu"}}