Twitter Oauth GMT / BST problem

Posted by Andrei Serdeliuc on Stack Overflow See other posts from Stack Overflow or by Andrei Serdeliuc
Published on 2010-04-11T17:03:21Z Indexed on 2010/04/11 17:23 UTC
Read the original article Hit count: 447

Filed under:
|
|

I keep getting 401 when trying to login via Oauth with Twitter.

I'm using twitter_oauth-0.3.3 with oauth-0.3.6 in rails

It used to work perfectly some time ago, so after some digging, I realised it might have something to do with my timezone.

In the headers of the Twitter response, one of them is:

date: 
- Sun, 11 Apr 2010 16:53:34 GMT

Even though the time is actually 17:53:34 BST

I'm assuming the request is signed using BST time, and so it fails.

Anyone had this problem / found a fix for it?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about twitter