[wp-trac] [WordPress Trac] #15883: when using get_posts() post_date does not get localized

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 18 23:19:01 UTC 2010


#15883: when using get_posts() post_date does not get localized
--------------------------+----------------------
 Reporter:  bmb           |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  3.0.3
 Severity:  minor         |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by scribu):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Filters are applied only when you call template tags, like the_title(),
 the_date() etc.

 So, the problem isn't that you're using get_posts(), but that you're
 accessing the post_date property directly instead of via get_the_date().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15883#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list