Zend Framework

Wrong date format, wrong interpreted by twitter

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.7.6
  • Component/s: Zend_Service_Twitter
  • Labels:
    None

Description

The current $_dateFormat (line 58 of Zend/Service/Twitter.php) value isn't correctly interprated by twitter.
It often leads to empty responses when there has to be new tweeds.

I would therefore strongly suggest to use the same format as twitter uses itself in the responses:

Mon Feb 16 13:44:39 +0000 2009

$_dateFormat = 'D M d H:i:s O Y';

Activity

Hide
Jon Whitcraft added a comment -

The problem with your format is it's not a valid HTTP-formatted date as the since header is being sent across in the header If-Modified-Since

I suggest changing it to: D, d M Y H:i:s T so it's a valid HTTP-formatted date.

Show
Jon Whitcraft added a comment - The problem with your format is it's not a valid HTTP-formatted date as the since header is being sent across in the header If-Modified-Since I suggest changing it to: D, d M Y H:i:s T so it's a valid HTTP-formatted date.
Hide
Jon Whitcraft added a comment -

This was checked into svn with r14124 and into the release branch with r14125

Show
Jon Whitcraft added a comment - This was checked into svn with r14124 and into the release branch with r14125

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: