mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-04 17:10:20 +00:00
feat: format last active time string using dayjs for improved readability
This commit is contained in:
1 parent
83db91ee58
commit
f27de51312
1 file changed
+1
-1
+1
-1
@@ -16,7 +16,7 @@ export function formatNezhaInfo(now: number, serverInfo: NezhaServer) {
|
||||
process: serverInfo.state.process_count || 0,
|
||||
up: serverInfo.state.net_out_speed / 1024 / 1024 || 0,
|
||||
down: serverInfo.state.net_in_speed / 1024 / 1024 || 0,
|
||||
last_active_time_string: lastActiveTime ? new Date(lastActiveTime).toLocaleString() : "",
|
||||
last_active_time_string: lastActiveTime ? dayjs(lastActiveTime * 1000).format("YYYY-MM-DD HH:mm:ss") : "",
|
||||
online: now - lastActiveTime <= 30000,
|
||||
uptime: serverInfo.state.uptime || 0,
|
||||
version: serverInfo.host.version || null,
|
||||
|
||||
Reference in new issue
Block a user