8000 Merge branch '5.4' into 6.0 · symfony/symfony@cc4e1c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc4e1c1

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Messenger] Decouple DelayStamp from timezone settings
2 parents 8026b0c + a38ec34 commit cc4e1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Stamp/DelayStamp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getDelay(): int
3333

3434
public static function delayFor(\DateInterval $interval): self
3535
{
36-
$now = new \DateTimeImmutable();
36+
$now = new \DateTimeImmutable('now', new \DateTimeZone('UTC'));
3737
$end = $now->add($interval);
3838

3939
return new self(($end->getTimestamp() - $now->getTimestamp()) * 1000);

0 commit comments

Comments
 (0)
0