[wp-trac] [WordPress Trac] #38773: Calculation error in human_time_diff

WordPress Trac noreply at wordpress.org
Fri Jul 7 17:07:42 UTC 2017


#38773: Calculation error in human_time_diff
-----------------------------------+------------------------------
 Reporter:  SGr33n                 |       Owner:  adamsilverstein
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Date/Time              |     Version:
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-unit-tests commit  |     Focuses:
-----------------------------------+------------------------------
Changes (by adamsilverstein):

 * owner:   => adamsilverstein
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41018"]:
 {{{
 #!CommitTicketReference repository="" revision="41018"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38773#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list