[wp-trac] [WordPress Trac] #8885: get_posts() should default orderby post_date_gmt

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 19 13:03:12 GMT 2009


#8885: get_posts() should default orderby post_date_gmt
--------------------------+-------------------------------------------------
 Reporter:  caorongjin    |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.7.1    
Component:  General       |     Version:           
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 the function get_posts() in posts.php is defaulted to orderby post_date.
 The problem with this is if entries are added in differing timezones
 (e.g., I changed my system timezone after x number of posts have been
 made), then the sorting is incorrect.  Since post_date_gmt is correct
 despite the timezone you are in, sorting based on this should be the
 default behavior.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8885>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list