[wp-trac] [WordPress Trac] #17126: Remove sanity check for PHP 5.1.0- in date_i18n()

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 13 18:56:47 UTC 2011


#17126: Remove sanity check for PHP 5.1.0- in date_i18n()
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  3.1
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------------
 There's a sanity check for PHP 5.1.0- in `date_i18n()`, which doesn't
 allow dates before 1970 (for example, January 21, 1930).

 The dates are perfectly stored in the database, however `date_i18n()`
 displays current date instead. Removing the check allows them to be
 displayed correctly. Since we are moving to PHP 5.2, the check is probably
 not needed any more.

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


More information about the wp-trac mailing list