{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/838","labels_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/838/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/838/comments","events_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/838/events","html_url":"https://github.com/Azure/azure-mobile-services/issues/838","id":115067013,"number":838,"title":"Query.deepClone() looses DateTimeOffset argument type.","user":{"login":"dbychkov","id":4295684,"avatar_url":"https://avatars.githubusercontent.com/u/4295684?v=3","gravatar_id":"","url":"https://api.github.com/users/dbychkov","html_url":"https://github.com/dbychkov","followers_url":"https://api.github.com/users/dbychkov/followers","following_url":"https://api.github.com/users/dbychkov/following{/other_user}","gists_url":"https://api.github.com/users/dbychkov/gists{/gist_id}","starred_url":"https://api.github.com/users/dbychkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbychkov/subscriptions","organizations_url":"https://api.github.com/users/dbychkov/orgs","repos_url":"https://api.github.com/users/dbychkov/repos","events_url":"https://api.github.com/users/dbychkov/events{/privacy}","received_events_url":"https://api.github.com/users/dbychkov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-mobile-services/labels/Android","name":"Android","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-04T14:41:49Z","updated_at":"2015-12-15T20:01:50Z","closed_at":"2015-12-15T19:59:36Z","body":"// Example:\r\nDateTimeOffset maxUpdatedAt = new DateTimeOffset(mostRecent.getUpdatedAt());\r\nQuery query = QueryOperations.field(MobileServiceSystemColumns.UpdatedAt).ge(maxUpdatedAt);\r\nquery = query.deepClone(); \r\n\r\n// -- bug in ConstantNode.java,line 38, looses DateTimeOffset Type during cloning\r\n//    so, I can't query services for createdAt and updatedAt columns\r\n\r\n    public QueryNode deepClone() {\r\n        ConstantNode clone = new ConstantNode();\r\n        if (this.mValue instanceof Date) {\r\n            clone.mValue = new Date(((Date) this.mValue).getTime());\r\n        } else {\r\n            clone.mValue = this.mValue;\r\n        }\r\n        return clone;\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/comments/164879494","html_url":"https://github.com/Azure/azure-mobile-services/issues/838#issuecomment-164879494","issue_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/838","id":164879494,"user":{"login":"ysxu","id":1403654,"avatar_url":"https://avatars.githubusercontent.com/u/1403654?v=3","gravatar_id":"","url":"https://api.github.com/users/ysxu","html_url":"https://github.com/ysxu","followers_url":"https://api.github.com/users/ysxu/followers","following_url":"https://api.github.com/users/ysxu/following{/other_user}","gists_url":"https://api.github.com/users/ysxu/gists{/gist_id}","starred_url":"https://api.github.com/users/ysxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysxu/subscriptions","organizations_url":"https://api.github.com/users/ysxu/orgs","repos_url":"https://api.github.com/users/ysxu/repos","events_url":"https://api.github.com/users/ysxu/events{/privacy}","received_events_url":"https://api.github.com/users/ysxu/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T20:01:50Z","updated_at":"2015-12-15T20:01:50Z","body":"https://github.com/Azure/azure-mobile-apps-android-client/issues/7"}}