{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/7683","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/7683/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/7683/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/7683/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/7683","id":41885612,"number":7683,"title":"500 error when loading rss atom with \"offset\" parameter","user":{"login":"dodocat","id":2086714,"avatar_url":"https://avatars.githubusercontent.com/u/2086714?v=3","gravatar_id":"","url":"https://api.github.com/users/dodocat","html_url":"https://github.com/dodocat","followers_url":"https://api.github.com/users/dodocat/followers","following_url":"https://api.github.com/users/dodocat/following{/other_user}","gists_url":"https://api.github.com/users/dodocat/gists{/gist_id}","starred_url":"https://api.github.com/users/dodocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodocat/subscriptions","organizations_url":"https://api.github.com/users/dodocat/orgs","repos_url":"https://api.github.com/users/dodocat/repos","events_url":"https://api.github.com/users/dodocat/events{/privacy}","received_events_url":"https://api.github.com/users/dodocat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-09-04T01:19:19Z","updated_at":"2015-11-07T14:53:13Z","closed_at":"2015-11-07T14:53:13Z","body":"I am trying to load the rss atom with pagination. But it seems the atom feed dose not support the atom standard `previou` `next` keyword.\r\nAnd then I find the offset parameter in dashboard `text/html` type request, tryed it and get 500 error.\r\n\r\n Here is the log.\r\n\r\n```\r\nStarted GET \"/dashboard.atom?private_token=xxx&page=23&limit=20&offset=60\" for 127.0.0.1 at 2014-09-04 09:08:10 +0800\r\nProcessing by DashboardController#show as ATOM\r\nParameters: {\"private_token\"=>\"xxx\", \"page\"=>\"23\", \"limit\"=>\"20\", \"offset\"=>\"60\"}\r\nCompleted 500 Internal Server Error in 25ms\r\nActionView::Template::Error (undefined method `strftime' for nil:NilClass):\r\n4: xml.link :href => dashboard_url(:atom), :rel => \"self\", :type => \"application/atom+xml\"\r\n5: xml.link :href => dashboard_url, :rel => \"alternate\", :type => \"text/html\"\r\n6: xml.id projects_url\r\n7: xml.updated @events.maximum(:updated_at).strftime(\"%Y-%m-%dT%H:%M:%SZ\") if @events.any?\r\n8:\r\n9: @events.each do |event|\r\n10: if event.proper?\r\napp/views/dashboard/show.atom.builder:7:in `block in _app_views_dashboard_show_atom_builder___3514616857617173375_69882486551900'\r\napp/views/dashboard/show.atom.builder:2:in `_app_views_dashboard_show_atom_builder___3514616857617173375_69882486551900'\r\napp/controllers/dashboard_controller.rb:30:in `block (2 levels) in show'\r\napp/controllers/dashboard_controller.rb:27:in `show'\r\nStarted GET \"/dashboard.atom?private_token=xxx&offset=60\" for 127.0.0.1 at 2014-09-04 09:08:20 +0800\r\nProcessing by DashboardController#show as ATOM\r\nParameters: {\"private_token\"=>\"xxx\", \"offset\"=>\"60\"}\r\nCompleted 500 Internal Server Error in 23ms\r\nActionView::Template::Error (undefined method `strftime' for nil:NilClass):\r\n4: xml.link :href => dashboard_url(:atom), :rel => \"self\", :type => \"application/atom+xml\"\r\n5: xml.link :href => dashboard_url, :rel => \"alternate\", :type => \"text/html\"\r\n6: xml.id projects_url\r\n7: xml.updated @events.maximum(:updated_at).strftime(\"%Y-%m-%dT%H:%M:%SZ\") if @events.any?\r\n8:\r\n9: @events.each do |event|\r\n10: if event.proper?\r\napp/views/dashboard/show.atom.builder:7:in `block in _app_views_dashboard_show_atom_builder___3514616857617173375_69882493973040'\r\napp/views/dashboard/show.atom.builder:2:in `_app_views_dashboard_show_atom_builder___3514616857617173375_69882493973040'\r\napp/controllers/dashboard_controller.rb:30:in `block (2 levels) in show'\r\napp/controllers/dashboard_controller.rb:27:in `show'\r\nStarted GET \"/team/readboy-common.git/info/refs?service=git-upload-pack\" for 127.0.0.1 at 2014-09-04 09:08:27 +0800\r\nStarted GET \"/dashboard?private_token=xxx&page=23&limit=20&offset=0\" for 127.0.0.1 at 2014-09-04 09:08:35 +0800\r\nProcessing by DashboardController#show as JSON\r\n```"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/154712349","html_url":"https://github.com/gitlabhq/gitlabhq/issues/7683#issuecomment-154712349","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/7683","id":154712349,"user":{"login":"jvanbaarsen","id":1362793,"avatar_url":"https://avatars.githubusercontent.com/u/1362793?v=3","gravatar_id":"","url":"https://api.github.com/users/jvanbaarsen","html_url":"https://github.com/jvanbaarsen","followers_url":"https://api.github.com/users/jvanbaarsen/followers","following_url":"https://api.github.com/users/jvanbaarsen/following{/other_user}","gists_url":"https://api.github.com/users/jvanbaarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jvanbaarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvanbaarsen/subscriptions","organizations_url":"https://api.github.com/users/jvanbaarsen/orgs","repos_url":"https://api.github.com/users/jvanbaarsen/repos","events_url":"https://api.github.com/users/jvanbaarsen/events{/privacy}","received_events_url":"https://api.github.com/users/jvanbaarsen/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T14:53:13Z","updated_at":"2015-11-07T14:53:13Z","body":"We are currently in the process of closing down the issue tracker on GitHub, to prevent duplication with the GitLab.com issue tracker. Since this is an older issue I'll be closing this for now. If you think this is still an issue I encourage you to open it on the [GitLab.com issue tracker](https://gitlab.com/gitlab-org/gitlab-ce/issues)."}}