[HELP] JSONToTable and os.time()

Hi, I program a VIP system.
To know the VIP duration, i have a script :
[LUA]
Time = 10 – 10 seconds to test the script
content = {}
content.time = os.time()+Time
content.vip = true
content = util.TableToJSON(content)
sql.QueryValue(“UPDATE *** SET content=”…sql.SQLStr(content)…" WHERE steamid=’"…self:SteamID()…"’")
[/LUA]
If I print “content.time”, it’s work !
Now, the expiration script :
[LUA]
for k,v in pairs(player.GetAll()) do
sqlisvip = sql.QueryValue(“SELECT content FROM *** WHERE steamid = “…sql.SQLStr(v:SteamID())…” ;”)
if(sqlisvip) then
content = util.JSONToTable(sqlisvip)
if(content.vip and tonumber(content.time) < os.time()) then
content.vip = false
content.time = 0
content = util.TableToJSON(content)
sql.QueryValue(“UPDATE *** SET content=”…sql.SQLStr(content)…" WHERE steamid=’"…v:SteamID()…"’")
GAMEMODE:Notify(v,1,5,“VIP expired”)
end
end
end
[/LUA]
But, now if I print content.time, it isn’t work !
I’ve this value :“1.35948e+009”.

Sorry for my bad english :wink:
Thanks for your help

If you wrote with English grammar not just English spelling I would be able to understand what you mean

You need to convert the time to a string

Work !
Thank you Banana =D