server stats chart

This commit is contained in:
mbecker20
2024-04-21 19:22:22 -07:00
parent 43514acc92
commit 176b12f18c
6 changed files with 296 additions and 19 deletions

View File

@@ -85,3 +85,8 @@ export const has_minimum_permissions = (
if (!level) return false;
return level_to_number(level) >= level_to_number(greater_than);
};
const tzOffset = new Date().getTimezoneOffset() * 60;
export const convertTsMsToLocalUnixTsInSecs = (ts: number) =>
ts / 1000 - tzOffset;