WordPress.org

Make WordPress Core

Changeset 41018

Timestamp:
07/07/17 17:07:40 (5 months ago)
Author:
adamsilverstein
Message:

Date/Time: Add unit tests for the human_time_diff function.

Verify that human_time_diff works as expected for minute, hour and day intervals. Test that rounding works as expected when the time difference is near the rounding margin.

Props SGr33n.
Fixes #38773.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.