asifshaon / 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

Incorrect date/time formatting on WinXP #204

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A problem was reported with rejected requests for calender events, the date 
time is improperly formatted on some versions of windows. There is a workaround 
created by the user. Thanks very much for finding and reporting this.

report from user:
======

I did the only thing i could think of. I removed the dll references
and used the source code for "Google.Apis.dll".
I modified the BuildRequest() function of "ServiceRequest.cs" and i
got the json for the request.
It was the date with wrong separator for the time...
My date converting function body is:

{
     return String.Format("{0:yyyy-MM-ddTHH:mm:sszzz}", myDateTime);
}

this function works good on Win7 and in WinXP returns the date string
with the dot (.) as separator for the time, which is wrong.

I thought this might help somebody else so i wrote about it
Thanks for your suggestion,
bye

Original issue reported on code.google.com by asky...@google.com on 25 Apr 2012 at 6:16

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 1 Oct 2013 at 5:34