Permalink
Browse files

Fix for #22

  • Loading branch information...
1 parent 103c2ad commit 12afbd352f579355204762278d05a6ffe2027a03 @stevestreza stevestreza committed May 4, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 MGTwitterXMLParser.m
View
1 MGTwitterXMLParser.m
@@ -113,6 +113,7 @@ - (void)parser:(NSXMLParser *)theParser didEndElement:(NSString *)elementName
// Change date-string into an NSDate.
NSLog(@"%@", [currentNode objectForKey:elementName]);
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
+ [dateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]];
dateFormatter.dateFormat = @"EEE MMM dd HH:mm:ss +0000 yyyy";
NSDate *creationDate = [dateFormatter dateFromString:[currentNode objectForKey:elementName]];
[dateFormatter release];

0 comments on commit 12afbd3

Please sign in to comment.