Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#17126 closed defect (bug) (duplicate)

Remove sanity check for PHP 5.1.0- in date_i18n()

Reported by: SergeyBiryukov Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Date/Time Keywords: has-patch
Focuses: Cc:


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.

Attachments (1)

17126.patch (719 bytes) - added by SergeyBiryukov 3 years ago.

Download all attachments as: .zip

Change History (3)

SergeyBiryukov3 years ago

comment:1 SergeyBiryukov3 years ago

  • Component changed from General to Date/Time

comment:2 nacin3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.