{"action":"created","issue":{"url":"https://api.github.com/repos/mgravell/protobuf-net/issues/82","labels_url":"https://api.github.com/repos/mgravell/protobuf-net/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/mgravell/protobuf-net/issues/82/comments","events_url":"https://api.github.com/repos/mgravell/protobuf-net/issues/82/events","html_url":"https://github.com/mgravell/protobuf-net/pull/82","id":70893015,"number":82,"title":"Fix DateTime Serialization bug where DateTimeKind was not serialized/des...","user":{"login":"roberttaylor26","id":4325734,"avatar_url":"https://avatars.githubusercontent.com/u/4325734?v=3","gravatar_id":"","url":"https://api.github.com/users/roberttaylor26","html_url":"https://github.com/roberttaylor26","followers_url":"https://api.github.com/users/roberttaylor26/followers","following_url":"https://api.github.com/users/roberttaylor26/following{/other_user}","gists_url":"https://api.github.com/users/roberttaylor26/gists{/gist_id}","starred_url":"https://api.github.com/users/roberttaylor26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberttaylor26/subscriptions","organizations_url":"https://api.github.com/users/roberttaylor26/orgs","repos_url":"https://api.github.com/users/roberttaylor26/repos","events_url":"https://api.github.com/users/roberttaylor26/events{/privacy}","received_events_url":"https://api.github.com/users/roberttaylor26/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-25T11:09:18Z","updated_at":"2015-05-04T15:36:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mgravell/protobuf-net/pulls/82","html_url":"https://github.com/mgravell/protobuf-net/pull/82","diff_url":"https://github.com/mgravell/protobuf-net/pull/82.diff","patch_url":"https://github.com/mgravell/protobuf-net/pull/82.patch"},"body":"I've supplied 2 bug fixes.\r\n\r\n1) Behavior before: When DateTime was serialized and then deserialized the DateTimeKind was lost. I noticed this recently when my Utc DateTimes were being lost and my deserialized dates were an hour out due to BST time.\r\n\r\nBehavior now: DateTimeKind is preserved in serialization/deserialization round trip.\r\n\r\n2) Behavior before: Empty arrays would be serialized and then deserialized as null.\r\n\r\nBehavior now: Empty arrays are preserved on serialization/deserialization round trip.\r\n\r\nThe tests in SerializerTests.cs should convey my intention in more detail and they all now pass.\r\n\r\nPlease let me know if these changes can be merged into master or if there is any feedback for improvements.\r\n\r\nRob"},"comment":{"url":"https://api.github.com/repos/mgravell/protobuf-net/issues/comments/98755477","html_url":"https://github.com/mgravell/protobuf-net/pull/82#issuecomment-98755477","issue_url":"https://api.github.com/repos/mgravell/protobuf-net/issues/82","id":98755477,"user":{"login":"mgravell","id":17328,"avatar_url":"https://avatars.githubusercontent.com/u/17328?v=3","gravatar_id":"","url":"https://api.github.com/users/mgravell","html_url":"https://github.com/mgravell","followers_url":"https://api.github.com/users/mgravell/followers","following_url":"https://api.github.com/users/mgravell/following{/other_user}","gists_url":"https://api.github.com/users/mgravell/gists{/gist_id}","starred_url":"https://api.github.com/users/mgravell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgravell/subscriptions","organizations_url":"https://api.github.com/users/mgravell/orgs","repos_url":"https://api.github.com/users/mgravell/repos","events_url":"https://api.github.com/users/mgravell/events{/privacy}","received_events_url":"https://api.github.com/users/mgravell/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T15:36:23Z","updated_at":"2015-05-04T15:36:23Z","body":"Note: it is fine to always process during deserialization as long as the old default is preserved: it is only during serialization that we need to check a flag "}}