From e92c667d89ced1d8efde16c02ef647e8e37bdf94 Mon Sep 17 00:00:00 2001 From: mboudet Date: Thu, 1 Aug 2024 15:23:05 +0000 Subject: [PATCH] Fix some projets issues --- core/project.service.js | 2 +- manager2/src/app/project/project.component.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/project.service.js b/core/project.service.js index 9de66590..88499206 100644 --- a/core/project.service.js +++ b/core/project.service.js @@ -125,7 +125,7 @@ async function create_project_request(asked_project, user) { '#NAME#': asked_project.id, '#SIZE#': asked_project.size, '#CPU#': asked_project.cpu, - '#EXPIRE#': asked_project.expire.toISOString().split('T')[0], + '#EXPIRE#': new Date(asked_project.expire).toISOString().split('T')[0], '#ORGA#': asked_project.orga, '#DESC#': asked_project.description }); diff --git a/manager2/src/app/project/project.component.ts b/manager2/src/app/project/project.component.ts index db93ffb7..0712a55c 100644 --- a/manager2/src/app/project/project.component.ts +++ b/manager2/src/app/project/project.component.ts @@ -17,6 +17,8 @@ export class ProjectComponent implements OnInit { @ViewChild('dtu') tableuser: Table; @ViewChild('formModal') formModal: ElementRef; + @ViewChild('terms_and_conditions_hds') terms_and_conditions_hds; + new_project: any projects: any users: any