diff options
author | vasraz <vasyl.razinkov@est.tech> | 2023-05-18 16:13:52 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-05-25 12:09:03 +0000 |
commit | dffdf560049dac56f2c7d35dffec0e009c7939af (patch) | |
tree | 79ad6c154293db9719e370eee1ef4c9954287dd8 /catalog-model/src | |
parent | 468d0770593e167990df815e45cde717bd845d18 (diff) |
Update vulnerable dependencies
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Ifedc08763f6d46e3bcba0367a81edc8e219865d0
Issue-ID: SDC-4504
Diffstat (limited to 'catalog-model/src')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/User.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/User.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/User.java index 72dc4aa7aa..0d44cff6e7 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/User.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/User.java @@ -20,13 +20,12 @@ package org.openecomp.sdc.be.model; import com.fasterxml.jackson.annotation.JsonInclude; +import java.time.ZonedDateTime; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; import org.openecomp.sdc.be.dao.utils.UserStatusEnum; import org.openecomp.sdc.common.util.NoHtml; @@ -88,8 +87,7 @@ public class User { } public void setLastLoginTime() { - DateTime now = new DateTime(DateTimeZone.UTC); - this.lastLoginTime = now.getMillis(); + this.lastLoginTime = ZonedDateTime.now().toInstant().toEpochMilli(); } } |