refactor: migrate JodaTime to java.time (rebuild on subdate2 ab96cfc)

Complete the JodaTime -> java.time migration across 30 files on the
correct subdate2 base. No org.joda references remain.
This commit is contained in:
SlaveOfMagicbot committed 2026-10-09 20:12:23 -05:00
1 parent ab96cfcda4
commit 8a136d84f4
30 files changed
+184 -196

No files matched your search

+3 -3
View File
@@ -14,7 +14,7 @@ import engine.objects.Bane;
import engine.objects.Building;
import engine.objects.City;
import engine.objects.PlayerCharacter;
import org.joda.time.DateTime;
import java.time.LocalDateTime;
import org.pmw.tinylog.Logger;
import java.sql.Connection;
@@ -71,12 +71,12 @@ public class dbBaneHandler extends dbHandlerBase {
}
public boolean SET_BANE_TIME(DateTime toSet, int cityUUID) {
public boolean SET_BANE_TIME(LocalDateTime toSet, int cityUUID) {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("UPDATE `dyn_banes` SET `liveDate`=? WHERE `cityUUID`=?")) {
preparedStatement.setTimestamp(1, new java.sql.Timestamp(toSet.getMillis()));
preparedStatement.setTimestamp(1, java.sql.Timestamp.valueOf(toSet));
preparedStatement.setLong(2, cityUUID);
preparedStatement.execute();