Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

## Unreleased

- Bump `nesbot/carbon` from version 2 to version 3.8+ (macintoshplus, [#3551](https://github.com/bolt/core/issues/3551))


## 5.2.2

Released: 2025-03-10
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"miljar/php-exif": "^0.6.4",
"nelexa/zip": "^3.3 || ^4.0",
"nelmio/cors-bundle": "^2.1",
"nesbot/carbon": "^2.53",
"nesbot/carbon": "^3.8",
"pagerfanta/doctrine-orm-adapter": "^4.7",
"php-translation/symfony-bundle": "^0.15",
"phpdocumentor/reflection-docblock": "^5.3",
Expand Down
2 changes: 1 addition & 1 deletion src/Event/Subscriber/TimedPublishSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct($tablePrefix, ManagerRegistry $managerRegistry)
public function onKernelRequest(): void
{
$conn = $this->defaultConnection;
$now = (new Carbon())->tz('UTC');
$now = Carbon::now('UTC');

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