Closed (fixed)
Project:
Twitter
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
13 May 2010 at 21:52 UTC
Updated:
28 Oct 2011 at 10:00 UTC
Thanks for the work so far on this!
I just ran into an issue where some Twitter users, who haven't saved their account in a long time, have utc_offset returned as NULL. I'd suggest allowing that field to be NULL to work around the issue, then compensate for any side-effects in the code.
Comments
Comment #1
christoph commentedCame across this issue - actually it is where the timezone is not set on the account. The user updated the timezone in their twitter account settings and all worked fine.
Comment #2
craigritchie commentedThis is also an issue on v7. I assume by the comment by christoph it's still an issue on 6.x. I'll post on v7 thread too.
Comment #3
michaek commentedSounds good to me. I'll make the change for 6.x, but I'm not doing any work on 7.x for now.
Comment #4
juampynr commentedFixed for both 7.x-3.x and 6.x-3.x: Added a fallback to 0 when received value is NULL. I have reviewed the code and seen that utc_offset is not used at all so there is no risk on setting it to 0.
http://drupalcode.org/project/twitter.git/commitdiff/125cd1954ae5c727be1...
http://drupalcode.org/project/twitter.git/commitdiff/91eeb70c3302854775e...