{"action":"created","issue":{"url":"https://api.github.com/repos/linvi/tweetinvi/issues/305","repository_url":"https://api.github.com/repos/linvi/tweetinvi","labels_url":"https://api.github.com/repos/linvi/tweetinvi/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/linvi/tweetinvi/issues/305/comments","events_url":"https://api.github.com/repos/linvi/tweetinvi/issues/305/events","html_url":"https://github.com/linvi/tweetinvi/issues/305","id":168074908,"number":305,"title":"DateTime fields are returned in local time rather than UTC","user":{"login":"philjt","id":18576850,"avatar_url":"https://avatars.githubusercontent.com/u/18576850?v=3","gravatar_id":"","url":"https://api.github.com/users/philjt","html_url":"https://github.com/philjt","followers_url":"https://api.github.com/users/philjt/followers","following_url":"https://api.github.com/users/philjt/following{/other_user}","gists_url":"https://api.github.com/users/philjt/gists{/gist_id}","starred_url":"https://api.github.com/users/philjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philjt/subscriptions","organizations_url":"https://api.github.com/users/philjt/orgs","repos_url":"https://api.github.com/users/philjt/repos","events_url":"https://api.github.com/users/philjt/events{/privacy}","received_events_url":"https://api.github.com/users/philjt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/linvi/tweetinvi/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-28T11:36:45Z","updated_at":"2016-07-29T08:56:24Z","closed_at":null,"body":"Looking at the API docs for twitter it states that the datetime values are returned in UTC, therefore I was expecting Tweetinvi to return these values in UTC, however they are returned in Local time.\r\n\r\nIs this by design or unexpected? I can not see anything in the documentation to state either way.\r\n\r\nExample:\r\nTwitter Date\r\nTue Jul 19 09:24:53 +0000 2016\r\n\r\nFrom DateTime.ParseExact:\r\n{19/07/2016 10:24:53}\r\n\r\nTHIS HAS CONVERTED TO LOCAL TIME (BST)!\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/linvi/tweetinvi/issues/comments/236129480","html_url":"https://github.com/linvi/tweetinvi/issues/305#issuecomment-236129480","issue_url":"https://api.github.com/repos/linvi/tweetinvi/issues/305","id":236129480,"user":{"login":"philjt","id":18576850,"avatar_url":"https://avatars.githubusercontent.com/u/18576850?v=3","gravatar_id":"","url":"https://api.github.com/users/philjt","html_url":"https://github.com/philjt","followers_url":"https://api.github.com/users/philjt/followers","following_url":"https://api.github.com/users/philjt/following{/other_user}","gists_url":"https://api.github.com/users/philjt/gists{/gist_id}","starred_url":"https://api.github.com/users/philjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philjt/subscriptions","organizations_url":"https://api.github.com/users/philjt/orgs","repos_url":"https://api.github.com/users/philjt/repos","events_url":"https://api.github.com/users/philjt/events{/privacy}","received_events_url":"https://api.github.com/users/philjt/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T08:56:24Z","updated_at":"2016-07-29T08:56:24Z","body":"OK thanks for clarifying, just wanted to be sure before I changed my code\nto handle it.\n\nThanks for the great library :).\n\n\nOn 29 July 2016 at 09:49, linvi <notifications@github.com> wrote:\n\n> The DateTime are effectively returned in local time. The reason is that\n> most developers do not read the Twitter documentation and usually expect\n> such behaviour.\n>\n> Just use .ToUniversalTime() to solve your problem.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/linvi/tweetinvi/issues/305#issuecomment-236128006>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ARt10pHe9dNfUhryqy-Wih9Xk6UKQ1HSks5qab6AgaJpZM4JXH4h>\n> .\n>\n"}}
{"actor":{"display_login":"philjt"}}