From 201d05e01fdb341f70929373e65c8f91abed2e1e Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Tue, 22 Sep 2020 13:00:57 +1000 Subject: [PATCH] make sure that we interpret SSH certificate expiry as a UTC based time, not in the local timezone --- src/app/authorisation.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/authorisation.service.ts b/src/app/authorisation.service.ts index 1104a67..fc69827 100644 --- a/src/app/authorisation.service.ts +++ b/src/app/authorisation.service.ts @@ -228,7 +228,7 @@ public getKeys(id?: Identity) { for (let id of resp) { var validstr: String; validstr = id.Valid[0]; - id.expiry = Date.parse(validstr.split(" ")[3]) + id.expiry = Date.parse(validstr.split(" ")[3]+"Z") res.push(id); } return res -- GitLab