[wp-trac] [WordPress Trac] #10332: Backdated pre-1st January 1970 post displayed as published on the current viewing day

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 19 06:30:29 UTC 2010


#10332: Backdated pre-1st January 1970 post displayed as published on the current
viewing day
--------------------------+-------------------------------------------------
 Reporter:  carboncopy    |       Owner:  nacin                               
     Type:  defect (bug)  |      Status:  reviewing                           
 Priority:  normal        |   Milestone:  3.1                                 
Component:  Date/Time     |     Version:  2.8                                 
 Severity:  major         |    Keywords:  has-patch needs-testing dev-feedback
--------------------------+-------------------------------------------------

Comment(by nacin):

 New patch.

 Now we will allow negative timestamps as long as the system supports them.
 This is detected by taking strtotime() of a date before the Unix epoch.
 PHP will return -1 on failure until 5.1, at which point this bug is no
 longer a problem.

 Needs sanity testing. Unit tests might be nice. Suggesting commit for 3.1
 if this pans out, then we can remove the sanity check for 3.2.

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


More information about the wp-trac mailing list