feat: 添加获取 cnb-board live mdContent 内容的路由,修正时间戳处理
This commit is contained in:
@@ -204,8 +204,8 @@ const createOSInfo = (more = false) => {
|
||||
|
||||
// 如果有 CNB_BUILD_START_TIME,添加构建启动时间
|
||||
if (startTimer) {
|
||||
const buildStartTime = dayjs(parseInt(startTimer as string)).format('YYYY-MM-DD HH:mm:ss')
|
||||
const buildUptime = Date.now() - parseInt(startTimer as string)
|
||||
const buildStartTime = dayjs(parseInt(startTimer as string) * 1000).format('YYYY-MM-DD HH:mm:ss')
|
||||
const buildUptime = Date.now() - parseInt(startTimer as string) * 1000
|
||||
const buildUptimeStr = formatUptime(Math.floor(buildUptime / 1000))
|
||||
labels.push(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user