silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,480
- Solutions
- 9
- Reaction score
- 211
hello folks, I'm trying to convert a timestamp to show in the item description...
actual behavior with this script
local test = thing:getAttribute(ITEM_ATTRIBUTE_DATE)
description = description .. thing:getDescription(distance) .. '\n' ..tostring(test) .. '.'
this attr I get from the PR of the reward chest system from socket
when I look at reward container appears:
You see a reward container (Vol:32).
This container contains your rewards earned in battles.
1494644666.
I want to convert the red number to something like that
13 may 2017.
its is possible?
actual behavior with this script
local test = thing:getAttribute(ITEM_ATTRIBUTE_DATE)
description = description .. thing:getDescription(distance) .. '\n' ..tostring(test) .. '.'
this attr I get from the PR of the reward chest system from socket
when I look at reward container appears:
You see a reward container (Vol:32).
This container contains your rewards earned in battles.
1494644666.
I want to convert the red number to something like that
13 may 2017.
its is possible?