mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 14:03:17 +00:00
Replace java.util.Date and java.util.Calendar with java.time.* equivalents.
This commit is contained in:
@@ -10,6 +10,7 @@ package org.dspace.content;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLException;
|
||||
import java.time.Instant;
|
||||
import java.util.Formatter;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
@@ -82,7 +83,7 @@ public class LicenseUtils {
|
||||
args[0] = eperson.getFirstName();
|
||||
args[1] = eperson.getLastName();
|
||||
args[2] = eperson.getEmail();
|
||||
args[3] = new java.util.Date();
|
||||
args[3] = Instant.now();
|
||||
args[4] = new FormattableArgument("collection", collection);
|
||||
args[5] = new FormattableArgument("item", item);
|
||||
args[6] = new FormattableArgument("eperson", eperson);
|
||||
|
Reference in New Issue
Block a user