{"action":"created","issue":{"url":"https://api.github.com/repos/dancannon/gorethink/issues/146","labels_url":"https://api.github.com/repos/dancannon/gorethink/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/dancannon/gorethink/issues/146/comments","events_url":"https://api.github.com/repos/dancannon/gorethink/issues/146/events","html_url":"https://github.com/dancannon/gorethink/pull/146","id":56522710,"number":146,"title":"Encode Time with milliseconds. From Rethinkdb docs: Times are stored on ...","user":{"login":"lexaf","id":6592482,"avatar_url":"https://avatars.githubusercontent.com/u/6592482?v=3","gravatar_id":"","url":"https://api.github.com/users/lexaf","html_url":"https://github.com/lexaf","followers_url":"https://api.github.com/users/lexaf/followers","following_url":"https://api.github.com/users/lexaf/following{/other_user}","gists_url":"https://api.github.com/users/lexaf/gists{/gist_id}","starred_url":"https://api.github.com/users/lexaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexaf/subscriptions","organizations_url":"https://api.github.com/users/lexaf/orgs","repos_url":"https://api.github.com/users/lexaf/repos","events_url":"https://api.github.com/users/lexaf/events{/privacy}","received_events_url":"https://api.github.com/users/lexaf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dancannon/gorethink/labels/t:bug","name":"t:bug","color":"FF7575"}],"state":"open","locked":false,"assignee":{"login":"dancannon","id":414768,"avatar_url":"https://avatars.githubusercontent.com/u/414768?v=3","gravatar_id":"","url":"https://api.github.com/users/dancannon","html_url":"https://github.com/dancannon","followers_url":"https://api.github.com/users/dancannon/followers","following_url":"https://api.github.com/users/dancannon/following{/other_user}","gists_url":"https://api.github.com/users/dancannon/gists{/gist_id}","starred_url":"https://api.github.com/users/dancannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancannon/subscriptions","organizations_url":"https://api.github.com/users/dancannon/orgs","repos_url":"https://api.github.com/users/dancannon/repos","events_url":"https://api.github.com/users/dancannon/events{/privacy}","received_events_url":"https://api.github.com/users/dancannon/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-02-04T12:53:31Z","updated_at":"2015-02-05T22:53:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dancannon/gorethink/pulls/146","html_url":"https://github.com/dancannon/gorethink/pull/146","diff_url":"https://github.com/dancannon/gorethink/pull/146.diff","patch_url":"https://github.com/dancannon/gorethink/pull/146.patch"},"body":"...the server as seconds since epoch (UTC) with millisecond precision plus a time zone."},"comment":{"url":"https://api.github.com/repos/dancannon/gorethink/issues/comments/73147670","html_url":"https://github.com/dancannon/gorethink/pull/146#issuecomment-73147670","issue_url":"https://api.github.com/repos/dancannon/gorethink/issues/146","id":73147670,"user":{"login":"dancannon","id":414768,"avatar_url":"https://avatars.githubusercontent.com/u/414768?v=3","gravatar_id":"","url":"https://api.github.com/users/dancannon","html_url":"https://github.com/dancannon","followers_url":"https://api.github.com/users/dancannon/followers","following_url":"https://api.github.com/users/dancannon/following{/other_user}","gists_url":"https://api.github.com/users/dancannon/gists{/gist_id}","starred_url":"https://api.github.com/users/dancannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancannon/subscriptions","organizations_url":"https://api.github.com/users/dancannon/orgs","repos_url":"https://api.github.com/users/dancannon/repos","events_url":"https://api.github.com/users/dancannon/events{/privacy}","received_events_url":"https://api.github.com/users/dancannon/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T22:53:50Z","updated_at":"2015-02-05T22:53:50Z","body":"Hi @lexaf, thank you very much for contributing to the driver! This bug could cause some pretty annoying issues so thanks for finding it. That being said I agree with @kofalt's point but maybe you could divide by time.Second instead, for example the below code is more descriptive (although slightly more verbose)\r\n\r\n```go\r\nfloat64(t.UnixNano()/time.Second.Nanoseconds())\r\n```\r\n\r\nAlso if you could add a test case that would be fantastic, if you do not have the time to do the changes let me know and I will give it a go."}}