ZF-5796: Wrong date format, wrong interpreted by twitter

Issue Type: Bug Created: 2009-02-16T05:23:47.000+0000 Last Updated: 2009-02-20T07:04:30.000+0000 Status: Resolved Fix version(s): - 1.7.6 (02/Mar/09)

Reporter: Mario Volke (webholics) Assignee: Jon Whitcraft (sidhighwind) Tags: - Zend_Service_Twitter

Related issues: Attachments:


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';


Posted by Jon Whitcraft (sidhighwind) on 2009-02-16T06:12:47.000+0000

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.

Posted by Jon Whitcraft (sidhighwind) on 2009-02-20T07:04:30.000+0000

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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.