{"action":"created","issue":{"url":"https://api.github.com/repos/fog/fog/issues/3710","labels_url":"https://api.github.com/repos/fog/fog/issues/3710/labels{/name}","comments_url":"https://api.github.com/repos/fog/fog/issues/3710/comments","events_url":"https://api.github.com/repos/fog/fog/issues/3710/events","html_url":"https://github.com/fog/fog/issues/3710","id":109185649,"number":3710,"title":"get_https_url generating negative expiry","user":{"login":"joshuamcginnis","id":391074,"avatar_url":"https://avatars.githubusercontent.com/u/391074?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuamcginnis","html_url":"https://github.com/joshuamcginnis","followers_url":"https://api.github.com/users/joshuamcginnis/followers","following_url":"https://api.github.com/users/joshuamcginnis/following{/other_user}","gists_url":"https://api.github.com/users/joshuamcginnis/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuamcginnis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuamcginnis/subscriptions","organizations_url":"https://api.github.com/users/joshuamcginnis/orgs","repos_url":"https://api.github.com/users/joshuamcginnis/repos","events_url":"https://api.github.com/users/joshuamcginnis/events{/privacy}","received_events_url":"https://api.github.com/users/joshuamcginnis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-30T21:44:05Z","updated_at":"2015-10-01T21:36:35Z","closed_at":null,"body":"I'm attempting to generate a signed url for a file in S3; however, the url that get's returned always returns a negative expiry which causes the url to `400`.\r\n\r\n```ruby    \r\nconnection = Fog::Storage.new(\r\n  region: 'us-west-1',\r\n  provider: 'AWS',\r\n  aws_access_key_id: ENV['AWS_ACCESS_KEY'],\r\n  aws_secret_access_key: ENV['AWS_SECRET_KEY']\r\n)\r\nbucket = connection.directories.get(BUCKET)\r\nfile = 'test.jpg'\r\np file_url = bucket.files.get_https_url(\"uploads/#{file}\", 300)\r\n```\r\nGenerated URL:\r\n```\r\nhttps://account.s3-us-west-x.amazonaws.com/files/test.doc?X-Amz-Expires=-1443648781&X-Amz-Date=20150930T213801Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AAAVA***FA/20150930/us-west-x/s3/aws4_request&X\r\n-Amz-SignedHeaders=host&X-Amz-Signature=e31663f9b2470e***215825d585b14c37e\r\n```\r\n\r\nAm I missing something here? Can you also confirm the units that the `expiry` arg should be in? (I'm presuming it is in in ms)"},"comment":{"url":"https://api.github.com/repos/fog/fog/issues/comments/144857005","html_url":"https://github.com/fog/fog/issues/3710#issuecomment-144857005","issue_url":"https://api.github.com/repos/fog/fog/issues/3710","id":144857005,"user":{"login":"joshuamcginnis","id":391074,"avatar_url":"https://avatars.githubusercontent.com/u/391074?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuamcginnis","html_url":"https://github.com/joshuamcginnis","followers_url":"https://api.github.com/users/joshuamcginnis/followers","following_url":"https://api.github.com/users/joshuamcginnis/following{/other_user}","gists_url":"https://api.github.com/users/joshuamcginnis/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuamcginnis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuamcginnis/subscriptions","organizations_url":"https://api.github.com/users/joshuamcginnis/orgs","repos_url":"https://api.github.com/users/joshuamcginnis/repos","events_url":"https://api.github.com/users/joshuamcginnis/events{/privacy}","received_events_url":"https://api.github.com/users/joshuamcginnis/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T21:36:35Z","updated_at":"2015-10-01T21:36:35Z","body":"@geemus Perfect. This is exactly the issue. By chance, could you point me to the documentation (if any) that says this?"}}