[wp-trac] [WordPress Trac] #38027: Comments feed returns invalid timestamp in http headers when there are no comments

WordPress Trac noreply at wordpress.org
Thu Oct 20 21:32:24 UTC 2016


#38027: Comments feed returns invalid timestamp in http headers when there are no
comments
--------------------------------------+--------------------------
 Reporter:  dllh                      |       Owner:  rachelbaker
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  4.7
Component:  Comments                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------

Comment (by rachelbaker):

 @swissspidy Where are you adding the microseconds to the date/time you are
 storing as the cache value?  Running the attached unit tests I am getting
 4 failures:


 {{{
 1) Tests_Comment_Last_Modified::test_default_timezone
 Failed asserting that two strings are identical.
 --- Expected
 +++ Actual
 @@ @@
 -2000-01-01 10:00:00.000000
 +2000-01-01 10:00:00

 /srv/www/wpapi/tests/phpunit/tests/comment/lastCommentModified.php:19

 2) Tests_Comment_Last_Modified::test_server_timezone
 Failed asserting that two strings are identical.
 --- Expected
 +++ Actual
 @@ @@
 -2000-01-01 10:00:00.000000
 +2000-01-01 10:00:00

 /srv/www/wpapi/tests/phpunit/tests/comment/lastCommentModified.php:29

 3) Tests_Comment_Last_Modified::test_data_is_cached
 Failed asserting that two strings are identical.
 --- Expected
 +++ Actual
 @@ @@
 -2000-01-01 10:00:00.000000
 +2000-01-01 10:00:00

 /srv/www/wpapi/tests/phpunit/tests/comment/lastCommentModified.php:70

 4) Tests_Comment_Last_Modified::test_cache_is_cleared
 Failed asserting that two strings are identical.
 --- Expected
 +++ Actual
 @@ @@
 -2000-01-01 10:00:00.000000
 +2000-01-01 10:00:00
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38027#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list