Fix Timezone issues

This commit is contained in:
Rsl1122 2017-08-09 19:30:40 +03:00
parent dfd5f82610
commit 301c54dbd2
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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();
} }
/** /**