Skip to content

Commit f17843f

Browse files
karlitschekCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Frank Karlitschek <karlitschek@users.noreply.github.com>
1 parent 4db4392 commit f17843f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Controller/APIv2ControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,9 @@ public function testGetHistogramWindowEndsTodayAndSpansTheRequestedDays(): void
479479
return ['counts' => [], 'partialBefore' => null];
480480
});
481481

482+
$today = new \DateTimeImmutable('now', new \DateTimeZone('UTC'));
482483
$data = $this->controller->getHistogram('all', 7)->getData();
483484

484-
$today = new \DateTimeImmutable('now', new \DateTimeZone('UTC'));
485485
$this->assertSame($today->format('Y-m-d'), $data['to']);
486486
$this->assertSame($today->modify('-6 days')->format('Y-m-d'), $data['from']);
487487
// 7 days inclusive, from the first second to the last

0 commit comments

Comments
 (0)