Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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:


Is this a bug ?

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

Change History (6)

#1 @Denis-de-Bernardy
5 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.

#2 @Denis-de-Bernardy
5 years ago

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

#3 @arena
5 years ago

comparing code of 3.1.1 and 3.2 bleeding

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

#4 @michaelh
5 years ago

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

#5 @arena
5 years ago

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

patch on ticket:17278 fixes it

#6 @dd32
5 years ago

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