Page MenuHomePhabricator

getHumanTimestamp is not aware of date change past midnight
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

With timezone set to UTC:

$t1 = new MWTimestamp('20251025235900');
$t2 = new MWTimestamp('20251027000000');
$lang->getHumanTimestamp($t1, $t2);

What happens?:

"Yesterday at 23:59"

What should have happened instead?:

"Saturday at 23:59"

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Details

Event Timeline

Change #1198696 had a related patch set uploaded (by Func; author: Func):

[mediawiki/core@master] Language: Calculate date difference from midnight to midnight

https://gerrit.wikimedia.org/r/1198696