Skip to content

Commit 70546e6

Browse files
committed
fixup! Keep track of when and who last set the isShared flag
1 parent 79c8368 commit 70546e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/State/CampUpdateProcessor.php

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

3434
public function onBeforeSharingStatusChange(Camp $data): Camp {
3535
if ($data->isShared) {
36-
$data->sharedSince = new \DateTime();
36+
$data->sharedSince = new \DateTime('now', new \DateTimeZone('UTC'));
3737

3838
/** @var User $user */
3939
$user = $this->security->getUser();

0 commit comments

Comments
 (0)