Sending Tweet (TWTRComposerViewController): Timestamp out of bound



Initially I was having problem with twitter login on iOS devices using calendar other than the default Gregorian one (Buddhist in our case).

The way I solved this problem was by passing oauth_timestamp manually in the parameters of the NSURLRequest.

NSString *timestamp = [NSString stringWithFormat:@"%d",(int)[[NSDate date] timeIntervalSince1970]];
TWTRAPIClient *client = [TWTRAPIClient clientWithCurrentUser];
NSURLRequest *request = [client URLRequestWithMethod:@"GET"

However, the problem still exists when I try to send a tweet using TWTRComposerViewController. I have not found a way to pass timestamp for sending a tweet by using default composer provided. I receive a Tweet failed to send alert when performing the tweet using the following code.

TWTRComposerViewController *composer = [[TWTRComposerViewController alloc] initWithInitialText:@"Some Text" image:nil videoURL:nil];
composer.delegate = self;
[self presentViewController:composer animated:YES completion:nil];

Any help would be appreciated. Thanks!