1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

changed the player history to reflect correct timezone

added result count to find clients
only show unique aliases on profile page
some rcon socket changes
This commit is contained in:
RaidMax
2018-04-02 22:11:19 -05:00
parent 3e094b0b61
commit 071cab1ecf
7 changed files with 98 additions and 60 deletions

View File

@ -12,8 +12,8 @@
animationEnabled: true,
toolTip: {
contentFormatter: function (e) {
var date = new Date(e.entries[0].dataPoint.x);
return date.toLocaleTimeString('en-US', { timeZone: 'America/New_York', hour12: true }) + " - " + e.entries[0].dataPoint.y + " players";
const date = moment.utc(e.entries[0].dataPoint.x);
return date.local().format('h:mm A') + " - " + e.entries[0].dataPoint.y + " players";
}
},
axisX: {
@ -86,4 +86,4 @@ function refreshClientActivity() {
});
}
setInterval(refreshClientActivity, 2000);
setInterval(refreshClientActivity, 2000);