Skip to content

Commit

Permalink
Merge branch '4.x' into 4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 2, 2024
2 parents a30b5fa + 095f67f commit 5af1c19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/translations/sv/app.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion tests/unit/helpers/DateTimeHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,12 @@ public function testRelativeTimeStatement(string $expected, int $number, string
*/
public function testRelativeTimeToSeconds(int $expected, int $number, string $unit): void
{
self::assertSame($expected, DateTimeHelper::relativeTimeToSeconds($number, $unit));
// account for DST changes
self::assertContains(DateTimeHelper::relativeTimeToSeconds($number, $unit), [
$expected,
$expected + (60 * 60),
$expected - (60 * 60),
]);
}

/**
Expand Down

0 comments on commit 5af1c19

Please sign in to comment.