Do not include milliseconds in feedback when saving the note

This commit is contained in:
Andreas Svanberg 2024-07-03 13:32:38 +02:00
parent de3803d9d1
commit f5a7b592c0

@ -24,6 +24,7 @@ import se.su.dsv.scipro.project.ProjectNoteService;
import se.su.dsv.scipro.system.User;
import java.time.LocalTime;
import java.time.temporal.ChronoUnit;
public class ProjectNoteColumn extends AbstractExportableColumn<Project, String> {
@Inject
@ -89,7 +90,7 @@ public class ProjectNoteColumn extends AbstractExportableColumn<Project, String>
user.getObject(),
note.getObject()
);
success("Note saved at " + LocalTime.now());
success("Note saved at " + LocalTime.now().truncatedTo(ChronoUnit.SECONDS));
}
};
add(form);