【巅峰赛头像框修改】
parent
72844ea7ab
commit
c1aa2626bc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue