【巅峰赛头像框修改】

dev_chengFeng
guowei 2021-01-18 11:07:07 +08:00 committed by DESKTOP-98AVA47\Administrator
parent 72844ea7ab
commit c1aa2626bc
2 changed files with 6 additions and 1 deletions

View File

@ -1371,6 +1371,11 @@ function TimeStampToDateStr(timestamp)
end
return string.format(Language[12119], date.year, date.month, date.day, date.hour, date.min)
end
function TimeStampToDateStr2(timestamp)
local date = os.date("*t", timestamp)
local cdate = os.date("*t", GetTimeStamp())
return string.format(Language[12119], date.year, date.month, date.day, date.hour, date.min)
end
-- 将时间戳转换为用于显示的日期字符串(时分秒)
function TimeStampToDateStr3(second)
local minute = math.floor(second / 60) % 60

View File

@ -315,7 +315,7 @@ function this.SelectItem(index, item)
if not data then return end
if data.Id >=80000 and HeadData and HeadData.validTime - GetTimeStamp() > 0 then
-- body
this.content.text = data.ItemDescribe .."到期时间:"..TimeStampToDateStr(HeadData.validTime)
this.content.text = data.ItemDescribe .."到期时间:"..TimeStampToDateStr2(HeadData.validTime)
else
this.content.text = data.ItemDescribe
end