This commit is contained in:
Timothée Goguely 2024-11-22 09:54:36 +01:00
commit 542991d688
3 changed files with 7 additions and 6 deletions

View file

@ -16,6 +16,9 @@ return [
'isValidated' => 'true'
]);
$timezone = new DateTimeZone('Europe/Paris');
$dateTime = new DateTime('now', $timezone);
$notification = [
'location' => [
'href' => (string) $href,
@ -24,7 +27,7 @@ return [
'uri' => (string) $project->url()
]
],
'date' => $newPage->modified('YYYY-MM-DD'),
'date' => $dateTime->format('Y-m-d\TH:i:sP'),
'author' => [
'name' => (string) kirby()->user()->name(),
'email' => (string) kirby()->user()->email(),

View file

@ -35,7 +35,7 @@ class ProjectPage extends Page {
'slug' => $child->slug(),
'index' => intval($child->stepIndex()->value()),
'modified' => $child->modified('Y-MM-dd'),
'isValidated' => (bool) $child->isValidated()->value() ?? false,
'isValidated' => $child->isValidated() == 'true' ? true : false,
'uri' => $uri,
'files' => $files,
];