wiki.techinc.nl/tests/phpunit/languages
Zhuyifei1999 0effd172ce translateBlockExpiry: Duration is block expiry minus current time
For relative timestamps in $str, strtotime( $str, $now ) returns an
absolute Unix timestamp $str since $now, and this timestamp is given
to $time. However, Language::formatDuration expects a time duration,
not an absolute timestamp. We obtain this duration from the difference
between $time, the absolute timestamp of block expiry, and $now, the
absolute timestamp of the time in which the block action happened.

Tests have been added to test both this patch and 01936fa, the patch
that caused this regression.

Bug: T156453
Change-Id: I6fd8c02dc3c6456067fe25cb9f33f5b4c78332aa
2017-01-28 07:22:00 +00:00
..
classes Make the code for grammar data processing common 2016-12-16 15:52:14 +02:00
LanguageClassesTestCase.php Use static::class instead of get_called_class() 2016-02-29 22:43:58 +00:00
LanguageConverterTest.php
LanguageTest.php translateBlockExpiry: Duration is block expiry minus current time 2017-01-28 07:22:00 +00:00
SpecialPageAliasTest.php