mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-29 19:41:35 +01:00
Fixed Player Peak displaying "Jan 1 1970" as player peaks #462
This commit is contained in:
parent
7f8f67845a
commit
dde8829d9f
@ -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", "");
|
||||
|
Loading…
Reference in New Issue
Block a user