{"action":"created","issue":{"url":"https://api.github.com/repos/rack/rack/issues/864","labels_url":"https://api.github.com/repos/rack/rack/issues/864/labels{/name}","comments_url":"https://api.github.com/repos/rack/rack/issues/864/comments","events_url":"https://api.github.com/repos/rack/rack/issues/864/events","html_url":"https://github.com/rack/rack/issues/864","id":79234724,"number":864,"title":"Cookie header : NoMethodError (undefined method `gmtime' for [DateTime])","user":{"login":"Startouf","id":7388889,"avatar_url":"https://avatars.githubusercontent.com/u/7388889?v=3","gravatar_id":"","url":"https://api.github.com/users/Startouf","html_url":"https://github.com/Startouf","followers_url":"https://api.github.com/users/Startouf/followers","following_url":"https://api.github.com/users/Startouf/following{/other_user}","gists_url":"https://api.github.com/users/Startouf/gists{/gist_id}","starred_url":"https://api.github.com/users/Startouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Startouf/subscriptions","organizations_url":"https://api.github.com/users/Startouf/orgs","repos_url":"https://api.github.com/users/Startouf/repos","events_url":"https://api.github.com/users/Startouf/events{/privacy}","received_events_url":"https://api.github.com/users/Startouf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T01:34:08Z","updated_at":"2015-05-22T01:40:47Z","closed_at":null,"body":"I just updated a bunch of my gems, everyting works fine in local development environment, but when I tried to deploy to my production server and login, there's a problem with cookies \r\n\r\n```\r\nNoMethodError (undefined method `gmtime' for Fri, 05 Jun 2015 01:24:55 +0000:DateTime):\r\n```\r\n\r\nFull Stack Trace\r\n\r\n```\r\nNoMethodError (undefined method `gmtime' for Fri, 05 Jun 2015 01:24:55 +0000:DateTime):\r\n  rack (1.6.1) lib/rack/utils.rb:304:in `set_cookie_header!'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:352:in `block in write'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:352:in `each'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:352:in `write'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:564:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n  rack (1.6.1) lib/rack/methodoverride.rb:22:in `call'\r\n  rack (1.6.1) lib/rack/runtime.rb:18:in `call'\r\n  rack (1.6.1) lib/rack/sendfile.rb:113:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/ssl.rb:24:in `call'\r\n  railties (4.2.1) lib/rails/engine.rb:518:in `call'\r\n  railties (4.2.1) lib/rails/application.rb:164:in `call'\r\n  passenger (4.0.37) lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'\r\n  passenger (4.0.37) lib/phusion_passenger/request_handler/thread_handler.rb:142:in `accept_and_process_next_request'\r\n  passenger (4.0.37) lib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'\r\n  passenger (4.0.37) lib/phusion_passenger/request_handler.rb:448:in `block (3 levels) in start_threads'\r\n```\r\n\r\nI'm using Webbrick in my local environment and Passenger in my production server,"},"comment":{"url":"https://api.github.com/repos/rack/rack/issues/comments/104472037","html_url":"https://github.com/rack/rack/issues/864#issuecomment-104472037","issue_url":"https://api.github.com/repos/rack/rack/issues/864","id":104472037,"user":{"login":"Startouf","id":7388889,"avatar_url":"https://avatars.githubusercontent.com/u/7388889?v=3","gravatar_id":"","url":"https://api.github.com/users/Startouf","html_url":"https://github.com/Startouf","followers_url":"https://api.github.com/users/Startouf/followers","following_url":"https://api.github.com/users/Startouf/following{/other_user}","gists_url":"https://api.github.com/users/Startouf/gists{/gist_id}","starred_url":"https://api.github.com/users/Startouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Startouf/subscriptions","organizations_url":"https://api.github.com/users/Startouf/orgs","repos_url":"https://api.github.com/users/Startouf/repos","events_url":"https://api.github.com/users/Startouf/events{/privacy}","received_events_url":"https://api.github.com/users/Startouf/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T01:40:47Z","updated_at":"2015-05-22T01:40:47Z","body":"Woh.... Just a few minutes later everything works perfectly. Possible vulnerability in the code for some inputs ?"}}