luantn2 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Calendar Event List #428

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Execute a CalendarService.Events.List request with a TimeMin or TimeMax 
value specified

What is the expected output? What do you see instead?
Expected to get a list of events back based on the time range specified. 
Instead I receive a Bad Request error, presumably because the time parameters 
are not formatted correctly when the request is executed.

What version of the product are you using?
What is your operating system? Windows 7
What is your IDE? VS 2012
What is the .NET framework version? 4.0

Please provide any additional information below.

The time format sent as a GET parameter is formatted as: 12/1/2013 12:00:00 AM
Apparently not a format supported by the api call, as it returns the same error 
when executing a query in the api explorer. The format should be similar to 
yyyy-MM-ddTHH:mm:ss.fffZ or yyyy-MM-dd

Original issue reported on code.google.com by graemedo...@gmail.com on 13 Dec 2013 at 12:11

GoogleCodeExporter commented 9 years ago
Your date format should be DD/MM/YYYY or MM/DD/YYYY according the country you 
live in.

So the "yyyy-MM-ddTHH:mm:ss.fffZ" is the format you must use, as it's a 
universal time format.

Original comment by sylvain....@aznetwork.eu on 13 Dec 2013 at 1:12

GoogleCodeExporter commented 9 years ago
Thanks for your response.

In version 1.6.0.69-beta, the TimeMax and TimeMin properties are specified as 
DateTime, so I don't have the option of setting the date format (as opposed to 
previous versions where these properties were String). Is there a format 
property specified somewhere else in the api?

Please advise.
Thanks

Original comment by graemedo...@gmail.com on 13 Dec 2013 at 1:57

GoogleCodeExporter commented 9 years ago
According this topic on StackOverflow 
http://stackoverflow.com/questions/20565391/google-calendar-api-v3-for-dotnet-ev
ents-date-datatype-changed?noredirect=1#comment30783884_20565391 and the issue 
427 I posted yesterday, it looks like there is a bug with the API with the 
current version.

Date properties type has changed from string to DateTime, and it looks like 
there is a bug with this change.

Original comment by sylvain....@aznetwork.eu on 14 Dec 2013 at 10:29

GoogleCodeExporter commented 9 years ago
Please use meantime 
https://www.nuget.org/packages/Google.Apis.Calendar.v3/1.6.0.68-beta
We will fix this issue in the next several days.

Thanks

Original comment by pele...@google.com on 14 Dec 2013 at 5:31

GoogleCodeExporter commented 9 years ago
Issue 427 has been merged into this issue.

Original comment by pele...@google.com on 14 Dec 2013 at 5:31

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/42160043/

Original comment by pele...@google.com on 14 Dec 2013 at 5:57

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 14 Dec 2013 at 5:57

GoogleCodeExporter commented 9 years ago
Issue 429 has been merged into this issue.

Original comment by pele...@google.com on 14 Dec 2013 at 5:58

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 14 Dec 2013 at 5:59

GoogleCodeExporter commented 9 years ago
Issue 429 has been merged into this issue.

Original comment by pele...@google.com on 14 Dec 2013 at 5:59