{"action":"created","issue":{"url":"https://api.github.com/repos/jasonsims/aws-cloudfront-sign/issues/9","labels_url":"https://api.github.com/repos/jasonsims/aws-cloudfront-sign/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/jasonsims/aws-cloudfront-sign/issues/9/comments","events_url":"https://api.github.com/repos/jasonsims/aws-cloudfront-sign/issues/9/events","html_url":"https://github.com/jasonsims/aws-cloudfront-sign/issues/9","id":60207092,"number":9,"title":"Supplying Javascript date object doesn't work","user":{"login":"Zugwalt","id":417605,"avatar_url":"https://avatars.githubusercontent.com/u/417605?v=3","gravatar_id":"","url":"https://api.github.com/users/Zugwalt","html_url":"https://github.com/Zugwalt","followers_url":"https://api.github.com/users/Zugwalt/followers","following_url":"https://api.github.com/users/Zugwalt/following{/other_user}","gists_url":"https://api.github.com/users/Zugwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/Zugwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zugwalt/subscriptions","organizations_url":"https://api.github.com/users/Zugwalt/orgs","repos_url":"https://api.github.com/users/Zugwalt/repos","events_url":"https://api.github.com/users/Zugwalt/events{/privacy}","received_events_url":"https://api.github.com/users/Zugwalt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-07T13:53:59Z","updated_at":"2015-03-07T16:16:22Z","closed_at":null,"body":"Documentation suggests we could do something like\r\n```javascript\r\nexpireTime: moment().add(expireTimeSec, 'seconds').toDate()\r\n```\r\n\r\nHowever what I really needed to do was pass unix epoch like\r\n```javascript\r\nexpireTime: moment().add(expireTimeSec, 'seconds').unix()\r\n```\r\n\r\nEither updating docs or converting date to unix epoch would suffice.\r\nNote I was using the http://momentjs.com/ library."},"comment":{"url":"https://api.github.com/repos/jasonsims/aws-cloudfront-sign/issues/comments/77695923","html_url":"https://github.com/jasonsims/aws-cloudfront-sign/issues/9#issuecomment-77695923","issue_url":"https://api.github.com/repos/jasonsims/aws-cloudfront-sign/issues/9","id":77695923,"user":{"login":"Zugwalt","id":417605,"avatar_url":"https://avatars.githubusercontent.com/u/417605?v=3","gravatar_id":"","url":"https://api.github.com/users/Zugwalt","html_url":"https://github.com/Zugwalt","followers_url":"https://api.github.com/users/Zugwalt/followers","following_url":"https://api.github.com/users/Zugwalt/following{/other_user}","gists_url":"https://api.github.com/users/Zugwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/Zugwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zugwalt/subscriptions","organizations_url":"https://api.github.com/users/Zugwalt/orgs","repos_url":"https://api.github.com/users/Zugwalt/repos","events_url":"https://api.github.com/users/Zugwalt/events{/privacy}","received_events_url":"https://api.github.com/users/Zugwalt/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T16:16:22Z","updated_at":"2015-03-07T16:16:22Z","body":"Awesome! No worries. Love the module! Just trying to help out by reporting what I found."}}