zone override

This commit is contained in:
2024-02-24 21:14:58 -06:00
parent ad51d90e1e
commit 2bfdc0f203
+5 -3
View File
@@ -97,12 +97,14 @@ public class Realm {
}
java.sql.Timestamp ruledTimeStamp = rs.getTimestamp("ruledSince");
if (ruledTimeStamp != null)
if (ruledTimeStamp != null){
this.ruledSince = LocalDateTime.ofInstant(ruledTimeStamp.toInstant(), ZoneId.systemDefault());
}else {
this.rulingCityUUID = 0;
this.charterType = 0;
}
this.mapY1 = rs.getFloat("mapY1");
this.mapX1 = rs.getFloat("mapX1");
this.mapY2 = rs.getFloat("mapY2");