WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#17310 closed defect (bug) (duplicate)

date_i18n('Y-m-d H:i:s u') returns 1970-01-01 00:00:00 000000

Reported by: arena Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2
Component: General Keywords: dev-feedback
Focuses: Cc:

Description

Is this a bug ?

this has been detected between 04/26 and 04/30

Change History (6)

comment:1 Denis-de-Bernardy3 years ago

It means date(foo) is returning null. Can you confirm that your server's date is properly set? it might be a Y2k or a Y2038 related bug.

comment:2 Denis-de-Bernardy3 years ago

Along the same lines, make sure that the input is not null as well...

comment:3 arena3 years ago

comparing code of 3.1.1 and 3.2 bleeding

looks like $unixtimestamp is not initialized when false (default value)

comment:4 michaelh3 years ago

See if grueben's patch on ticket:17278 fixes for you.

comment:5 arena3 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

patch on ticket:17278 fixes it

comment:6 dd323 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.