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

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 6 16:25:33 GMT 2009

#8885: get_posts() should default orderby post_date_gmt
 Reporter:  caorongjin    |        Owner:  anonymous
     Type:  defect (bug)  |       Status:  new      
 Priority:  normal        |    Milestone:  2.8      
Component:  General       |      Version:  2.7      
 Severity:  normal        |   Resolution:           
 Keywords:                |  
Changes (by Otto42):

  * version:  => 2.7


 Replying to [comment:1 Denis-de-Bernardy]:
 > It's a little trickier imo. What should happen when, say, you drop an
 hour due to daylight savings?
 > You post something at 12:55. And then, when it's 12:05, you post
 another, and the order will be messed up as well -- even using

 GMT does not do daylight savings. Never has, never will. So, post_date_gmt
 should never go backwards in time.

 Replying to [comment:4 bi0xid]:
 > Maybe we must think using UTC instead of GMT to avoid problems in the

 UTC == GMT for all relevant cases. Okay, so they're technically different,
 but for our purposes they're the same thing (we're not dealing with time
 at the atomic level here...).

 So yes, sorting by post_date_gmt instead of post_date makes sense. +1.

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

More information about the wp-trac mailing list