{"action":"created","issue":{"url":"https://api.github.com/repos/jenssegers/date/issues/224","repository_url":"https://api.github.com/repos/jenssegers/date","labels_url":"https://api.github.com/repos/jenssegers/date/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/jenssegers/date/issues/224/comments","events_url":"https://api.github.com/repos/jenssegers/date/issues/224/events","html_url":"https://github.com/jenssegers/date/pull/224","id":181413097,"number":224,"title":"Fix changing locale after app has booted","user":{"login":"garygreen","id":1702638,"avatar_url":"https://avatars.githubusercontent.com/u/1702638?v=3","gravatar_id":"","url":"https://api.github.com/users/garygreen","html_url":"https://github.com/garygreen","followers_url":"https://api.github.com/users/garygreen/followers","following_url":"https://api.github.com/users/garygreen/following{/other_user}","gists_url":"https://api.github.com/users/garygreen/gists{/gist_id}","starred_url":"https://api.github.com/users/garygreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garygreen/subscriptions","organizations_url":"https://api.github.com/users/garygreen/orgs","repos_url":"https://api.github.com/users/garygreen/repos","events_url":"https://api.github.com/users/garygreen/events{/privacy}","received_events_url":"https://api.github.com/users/garygreen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T13:21:05Z","updated_at":"2016-10-06T14:33:36Z","closed_at":"2016-10-06T13:59:12Z","pull_request":{"url":"https://api.github.com/repos/jenssegers/date/pulls/224","html_url":"https://github.com/jenssegers/date/pull/224","diff_url":"https://github.com/jenssegers/date/pull/224.diff","patch_url":"https://github.com/jenssegers/date/pull/224.patch"},"body":"It's pretty common to have your app change the locale in a middleware. When the app boots up, it's very rare to actually know what the locale will be until the session is booted and locale is set.\r\n\r\nThis fixes those cases where the locale can be changed at any time after the app has booted.\r\n\r\nAs a side note, I would recommend to have a proper facade for `Date` because then you can defer loading of the service provider and translator module every request. Anyway that's for another PR.\r\n"},"comment":{"url":"https://api.github.com/repos/jenssegers/date/issues/comments/251980980","html_url":"https://github.com/jenssegers/date/pull/224#issuecomment-251980980","issue_url":"https://api.github.com/repos/jenssegers/date/issues/224","id":251980980,"user":{"login":"garygreen","id":1702638,"avatar_url":"https://avatars.githubusercontent.com/u/1702638?v=3","gravatar_id":"","url":"https://api.github.com/users/garygreen","html_url":"https://github.com/garygreen","followers_url":"https://api.github.com/users/garygreen/followers","following_url":"https://api.github.com/users/garygreen/following{/other_user}","gists_url":"https://api.github.com/users/garygreen/gists{/gist_id}","starred_url":"https://api.github.com/users/garygreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garygreen/subscriptions","organizations_url":"https://api.github.com/users/garygreen/orgs","repos_url":"https://api.github.com/users/garygreen/repos","events_url":"https://api.github.com/users/garygreen/events{/privacy}","received_events_url":"https://api.github.com/users/garygreen/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T14:33:36Z","updated_at":"2016-10-06T14:33:36Z","body":"@jenssegers also would mind publishing a new version?\r\n"}}
{"actor":{"display_login":"garygreen"}}