Fixed Player Peak displaying "Jan 1 1970" as player peaks #462

This commit is contained in:
Rsl1122 2017-12-06 15:48:58 +02:00
parent 7f8f67845a
commit dde8829d9f

View File

@ -96,7 +96,7 @@ public class NetworkPageParser extends PageParser {
if (allTimePeak.isPresent()) {
TPS tps = allTimePeak.get();
addValue("bestPeakTime", FormatUtils.formatTimeStampYear(tps.getDate()));
addValue("playersBestPeak", FormatUtils.formatTimeStampYear(tps.getPlayers()));
addValue("playersBestPeak", tps.getPlayers());
} else {
addValue("bestPeakTime", "No Data");
addValue("playersBestPeak", "");
@ -104,7 +104,7 @@ public class NetworkPageParser extends PageParser {
if (lastPeak.isPresent()) {
TPS tps = lastPeak.get();
addValue("lastPeakTime", FormatUtils.formatTimeStampYear(tps.getDate()));
addValue("playersLastPeak", FormatUtils.formatTimeStampYear(tps.getPlayers()));
addValue("playersLastPeak", tps.getPlayers());
} else {
addValue("lastPeakTime", "No Data");
addValue("playersLastPeak", "");