{"action":"created","issue":{"url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1564","repository_url":"https://api.github.com/repos/briannesbitt/Carbon","labels_url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1564/labels{/name}","comments_url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1564/comments","events_url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1564/events","html_url":"https://github.com/briannesbitt/Carbon/issues/1564","id":394579974,"node_id":"MDU6SXNzdWUzOTQ1Nzk5NzQ=","number":1564,"title":"utcOffset(0) incorrect year","user":{"login":"wangchj","id":1118410,"node_id":"MDQ6VXNlcjExMTg0MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1118410?v=4","gravatar_id":"","url":"https://api.github.com/users/wangchj","html_url":"https://github.com/wangchj","followers_url":"https://api.github.com/users/wangchj/followers","following_url":"https://api.github.com/users/wangchj/following{/other_user}","gists_url":"https://api.github.com/users/wangchj/gists{/gist_id}","starred_url":"https://api.github.com/users/wangchj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangchj/subscriptions","organizations_url":"https://api.github.com/users/wangchj/orgs","repos_url":"https://api.github.com/users/wangchj/repos","events_url":"https://api.github.com/users/wangchj/events{/privacy}","received_events_url":"https://api.github.com/users/wangchj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-12-28T08:30:29Z","updated_at":"2018-12-28T19:22:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following assertion fails\r\n\r\n```php\r\npublic function testUtcOffset() {\r\n    $carbon = Carbon::createFromTimestampUTC(0)->utcOffset(0);\r\n    $this->assertSame(1970, $carbon->year);\r\n}\r\n```\r\n\r\n```\r\nTest  tests/unit/dependencies/CarbonTest.php:testUtcOffset\r\nFailed asserting that 1969 is identical to 1970.\r\n```\r\n\r\nCarbon version: 2.9.1\r\nPHP version: 7.1.16\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/briannesbitt/Carbon/issues/comments/450413407","html_url":"https://github.com/briannesbitt/Carbon/issues/1564#issuecomment-450413407","issue_url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1564","id":450413407,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDQxMzQwNw==","user":{"login":"wangchj","id":1118410,"node_id":"MDQ6VXNlcjExMTg0MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1118410?v=4","gravatar_id":"","url":"https://api.github.com/users/wangchj","html_url":"https://github.com/wangchj","followers_url":"https://api.github.com/users/wangchj/followers","following_url":"https://api.github.com/users/wangchj/following{/other_user}","gists_url":"https://api.github.com/users/wangchj/gists{/gist_id}","starred_url":"https://api.github.com/users/wangchj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangchj/subscriptions","organizations_url":"https://api.github.com/users/wangchj/orgs","repos_url":"https://api.github.com/users/wangchj/repos","events_url":"https://api.github.com/users/wangchj/events{/privacy}","received_events_url":"https://api.github.com/users/wangchj/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T19:22:17Z","updated_at":"2018-12-28T19:22:17Z","author_association":"CONTRIBUTOR","body":"Hi Kyle, thank you for the recommendation.  We do store all dates in UTC and the offset of the event so that when the event is displayed back to the user, it will display the same date as when the event was made regardless of the current location of the user.\r\n\r\nFor example, the user created an event in London on `2018-01-01 23:00:00+00:00` and travels to Japan (+09:00). When we looks this particular event in Japan, he should still see that this event on `2018-01-01` not `2018-01-02`."}}
{"actor":{"display_login":"wangchj"}}