Make WordPress Core


Ignore:
Timestamp:
06/29/2024 09:29:08 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Date/Time: Replace abbreviations for minutes in human_time_diff().

This ensures that relative times are formatted the same way in both JS and PHP.

Follow-up to [1976], [2124], [4658], [41018], [56496].

Props wildworks.
Fixes #61535.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/humanTimeDiff.php

    r55562 r58600  
    2828                        ),
    2929                        array(
    30                                 '5 mins',
     30                                '5 minutes',
    3131                                new DateTime( '2016-01-01 12:05:00' ),
    3232                                'Test a difference of 5 minutes.',
Note: See TracChangeset for help on using the changeset viewer.