JGonera has uploaded a new change for review. Change subject: Add months and years to Timestamp::getHumanTimestamp() ......................................................................
Add months and years to Timestamp::getHumanTimestamp() Now if the difference between $now and $then is >= 30 days, "X months ago" or "X years ago" is returned. Month is defined as 30 days, but it shouldn't cause problems in this case. The "X time ago" messages are approximate anyway. Change-Id: I228a11e23783484b64c29db94c3607a415fa81a8 --- M includes/Timestamp.php M languages/messages/MessagesEn.php M languages/messages/MessagesQqq.php M maintenance/language/messages.inc M tests/phpunit/includes/TimestampTest.php 5 files changed, 21 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/27/42127/1 -- To view, visit https://gerrit.wikimedia.org/r/42127 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I228a11e23783484b64c29db94c3607a415fa81a8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: JGonera <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
