Replace java.util.Date and java.util.Calendar with java.time.* equivalents.

This commit is contained in:
Tim Donohue
2025-01-13 11:02:28 -06:00
parent 1052915360
commit 611e98afe8
299 changed files with 2065 additions and 2752 deletions

View File

@@ -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);