diff --git a/src/main/java/org/ntlab/acanthus_server/entities/Animation.java b/src/main/java/org/ntlab/acanthus_server/entities/Animation.java index ba0253e..2b97551 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/Animation.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/Animation.java @@ -64,6 +64,7 @@ this.owner = owner; this.editors.add(new Editor(owner, true)); this.pageMap.put(0, new Page()); + this.lastUpdate = date.format(dateTimeFormatter); } public Animation(Account account) { @@ -147,6 +148,8 @@ public String getCreatedDate(){return createdDate;} + public String getLastUpdate(){return lastUpdate;} + //----------------------------------------------------------------- // remover @@ -214,6 +217,8 @@ LocalDateTime date = LocalDateTime.now(); DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"); this.createdDate = date.format(dateTimeFormatter); + this.lastUpdate = date.format(dateTimeFormatter); + //this.lastAccess = LocalDateTime.of(2015, 12, 15, 0, 0);