Skip to content

Commit a9703cc

Browse files
committed
⬆️ Upgrade dependency nesbot/carbon - issue #3551
1 parent 08074c8 commit a9703cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"miljar/php-exif": "^0.6.4",
3434
"nelexa/zip": "^3.3 || ^4.0",
3535
"nelmio/cors-bundle": "^2.1",
36-
"nesbot/carbon": "^2.53",
36+
"nesbot/carbon": "^3.8",
3737
"php-translation/symfony-bundle": "^0.12",
3838
"phpdocumentor/reflection-docblock": "^5.3",
3939
"psr/event-dispatcher": "^1.0",

src/Event/Subscriber/TimedPublishSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct($tablePrefix, ManagerRegistry $managerRegistry)
3737
public function onKernelRequest(): void
3838
{
3939
$conn = $this->defaultConnection;
40-
$now = (new Carbon())->tz('UTC');
40+
$now = new Carbon(null, 'UTC');
4141

4242
// Publish timed Content records when 'publish_at' has passed and Depublish published Content
4343
// records when 'depublish_at' has passed. Note: Placeholders in DBAL don't work for tablenames.

0 commit comments

Comments
 (0)