Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#1059 closed defect (bug) (fixed)

Make human_time_diff() be temporally insensitive

Reported by: ericmeyer's profile EricMeyer Owned by: matt's profile matt
Milestone: Priority: normal
Severity: minor Version: 1.5.1
Component: General Keywords:
Focuses: Cc:

Description

Currently, human_time_diff() only works for future dates. A simple change to a single line makes it work into the past as well. Note that the routine will still only return a human-friendly time value no matter whether the interval describes the past or the future.

Attachments (1)

patch.txt (471 bytes) - added by EricMeyer 19 years ago.

Download all attachments as: .zip

Change History (5)

#2 @EricMeyer
20 years ago

  • Patch set to No

#3 @ryan
20 years ago

  • Patch changed from No to Yes

#4 @matt
20 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed

@EricMeyer
19 years ago

Note: See TracTickets for help on using tickets.