xiaoxiwu / oauth-dot-net

Automatically exported from code.google.com/p/oauth-dot-net
0 stars 0 forks source link

OAuth.Net.Examples.TwitterClient fails on cultures other than en-US #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Running OAuth.Net.Examples.TwitterClient on culture other than en-us
(pl-PL) causes FormatException on DateTime.ParseExact.

The solution is to change ExtendedUser.cs lines 088 and 089:
         this.CreatedDate = DateTime
                    .ParseExact(value, TwitterApi.DateFormat,
CultureInfo.InvariantCulture);

same modifictaion is required i Status.cs.

I attached a patch to current trunk rev 142

Original issue reported on code.google.com by bartlomi...@gmail.com on 20 Oct 2009 at 8:12

Attachments:

GoogleCodeExporter commented 8 years ago
Patch applied to trunk

Original comment by chris.s....@gmail.com on 1 Mar 2010 at 8:16