We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52422d7 commit cf04a43Copy full SHA for cf04a43
tests/TimeagoTest.php
@@ -84,8 +84,8 @@ public function testTimeAgoInWords()
84
85
// seemed to be the easiest way to get 1 year - 1 second, which should be the day before 1 year ago :)
86
$oneYearAgo = strtotime("-1 year");
87
- // NOTE: this fails around leap years... so... -2 days must be accurate enough
88
- $twoDays = (2*86400); // 2 days in seconds
+ // NOTE: this fails around leap years... so... -4 days must be accurate enough
+ $twoDays = (4*86400); // 4 days in seconds
89
$this->assertContains('months ago', $timeAgo->inWordsFromStrings(date('c', $oneYearAgo + $twoDays)));
90
$this->assertNotContains('months ago', $timeAgo->inWordsFromStrings(date('c', $oneYearAgo)));
91
0 commit comments