mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-10 04:41:26 +01:00
Fix Timezone issues
This commit is contained in:
parent
dfd5f82610
commit
301c54dbd2
@ -184,7 +184,7 @@ public abstract class SQLDB extends Database {
|
|||||||
Set<UUID> uuids = usersTable.getSavedUUIDs();
|
Set<UUID> uuids = usersTable.getSavedUUIDs();
|
||||||
uuids.removeAll(usersTable.getContainsBukkitData(uuids));
|
uuids.removeAll(usersTable.getContainsBukkitData(uuids));
|
||||||
if (uuids.isEmpty()) {
|
if (uuids.isEmpty()) {
|
||||||
Log.debug("No conversion necessary.");
|
Log.debug("Database", "No conversion necessary.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setStatus("Bukkit Data Conversion");
|
setStatus("Bukkit Data Conversion");
|
||||||
|
@ -41,7 +41,7 @@ public class MiscUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int getTimeZoneOffsetHours() {
|
public static int getTimeZoneOffsetHours() {
|
||||||
return TimeZone.getDefault().getOffset(MiscUtils.getTime()) / (int) TimeAmount.HOUR.ms();
|
return -TimeZone.getDefault().getOffset(MiscUtils.getTime()) / (int) TimeAmount.HOUR.ms();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user