Merge branch 'main' of https://framagit.org/isUnknown/pdc-b2b-project-management-platform into main
This commit is contained in:
commit
542991d688
3 changed files with 7 additions and 6 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue