{"action":"opened","issue":{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/611","labels_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/611/comments","events_url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/issues/611/events","html_url":"https://github.com/chrsmithdemos/google-api-java-client/issues/611","id":59552903,"number":611,"title":"Calendar: 400 bad request when using DateTime as parameter","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Milestone-Version1.13.0","name":"Milestone-Version1.13.0","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/google-api-java-client/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-02T21:21:33Z","updated_at":"2015-03-02T21:21:33Z","closed_at":"2015-03-02T21:21:33Z","body":"```\nVersion of google-api-java-client (e.g. 1.5.0-beta)?\n1.11.0-beta\n\nJava environment (e.g. Java 6, Android 2.3, App Engine)?\nAndroid 4.x\n\nDescribe the problem.\nI previously used 1.9.0-beta and the corresponding generated calendar library. \nAfter updating I noticed that the setUpdatedMin, setTimeMin and setTimeMax \nmethods from Calendar.Events.List now require DateTime objects instead of \nStrings. After changing my code I get 400 bad request errors.\n\nExample code\nDateTime lastSync = new DateTime(0);\nservice.events().list(calendarId).setUpdatedMin(lastSync).execute();\n\nStacktrace/Response\n09-23 18:25:45.632: WARN/System.err(1467): \ncom.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad \nRequest\n09-23 18:25:45.632: WARN/System.err(1467): {\n09-23 18:25:45.632: WARN/System.err(1467): \"code\": 400,\n09-23 18:25:45.632: WARN/System.err(1467): \"errors\": [\n09-23 18:25:45.642: WARN/System.err(1467): {\n09-23 18:25:45.672: WARN/System.err(1467): \"domain\": \"global\",\n09-23 18:25:45.713: WARN/System.err(1467): \"message\": \"Bad Request\",\n09-23 18:25:45.713: WARN/System.err(1467): \"reason\": \"badRequest\"\n09-23 18:25:45.713: WARN/System.err(1467): }\n09-23 18:25:45.713: WARN/System.err(1467): ],\n09-23 18:25:45.722: WARN/System.err(1467): \"message\": \"Bad Request\"\n09-23 18:25:45.722: WARN/System.err(1467): }\n\n```\n\nOriginal issue reported on code.google.com by `gabriel....@gmail.com` on 23 Sep 2012 at 4:36"}}