From 14a631aac3277e8d6e467118bb5e9f9e99c3c177 Mon Sep 17 00:00:00 2001 From: Pierre Ozoux Date: Thu, 19 May 2022 12:23:46 +0200 Subject: [PATCH] Set date to epoch beginning. --- README.md | 20 ++++++++++++++------ lib/Service/SCIMGroup.php | 4 ++-- lib/Service/SCIMUser.php | 4 ++-- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c36b735..a26c8c8 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,22 @@ For CI, there is still [a bug](https://github.com/Kong/insomnia/issues/4747) we ## Todo - - ExternalID - - json exceptions - - Meta -> + - [ ] Meta -> ([can't implement yet](https://github.com/nextcloud/server/issues/22640)) - createdAt - lastModified - - if no emails in user, return nice array - - pagination - - group member removal + - [ ] ExternalID + - [ ] Users + - [ ] Groups - [waiting for feedback](https://help.nextcloud.com/t/add-metadata-to-groups/139271) + - [ ] if no emails in user, return nice array + - [ ] json exceptions + - [ ] group member removal + - [ ] pagination + - [ ] CI/CD + - [ ] Lint cs:check + - [ ] test psalm + - [ ] test insomnia + - [ ] publish app on app store + ## Quick "Deploy" to test diff --git a/lib/Service/SCIMGroup.php b/lib/Service/SCIMGroup.php index 6c7520a..cc897f5 100644 --- a/lib/Service/SCIMGroup.php +++ b/lib/Service/SCIMGroup.php @@ -49,8 +49,8 @@ class SCIMGroup { 'meta' => [ 'resourceType' => 'Group', 'location' => '/Groups/' . $groupId, - 'created' => '2022-04-28T18:27:17.783Z', // todo - 'lastModified' => '2022-04-28T18:27:17.783Z' // todo + 'created' => '1970-01-01T00:00:00.000Z', + 'lastModified' => '1970-01-01T00:00:00.000Z' ], 'members' => $members ]; diff --git a/lib/Service/SCIMUser.php b/lib/Service/SCIMUser.php index 1f4220d..4f71860 100644 --- a/lib/Service/SCIMUser.php +++ b/lib/Service/SCIMUser.php @@ -45,8 +45,8 @@ class SCIMUser { 'meta' => [ 'resourceType' => 'User', 'location' => '/Users/' . $userId, - 'created' => '2022-04-28T18:27:17.783Z', // todo - 'lastModified' => '2022-04-28T18:27:17.783Z' // todo + 'created' => '1970-01-01T00:00:00.000Z', + 'lastModified' => '1970-01-01T00:00:00.000Z' ], 'userName' => $userId, 'displayName' => $targetUserObject->getDisplayName(),