Ni3ls
26th March 2016, 08:59
Hi all,
Im trying to work with mysql and stuff and came across this post by izno
foo()
{
asyncQuery("SELECT NOW() AS `time`", ::showTime);
}
showTime(rows, args)
{
if(isDefined(rows) && isDefined(rows[0]) && isDefined(rows[0]["time"]))
iprintlnbold("It is " + rows[0]["time"]);
}
It does work, however the time is incorrect.
I live in the Netherlands (GMT +1), tested it at 10:58, but time shows 10:15.
What time does it show?
Im trying to work with mysql and stuff and came across this post by izno
foo()
{
asyncQuery("SELECT NOW() AS `time`", ::showTime);
}
showTime(rows, args)
{
if(isDefined(rows) && isDefined(rows[0]) && isDefined(rows[0]["time"]))
iprintlnbold("It is " + rows[0]["time"]);
}
It does work, however the time is incorrect.
I live in the Netherlands (GMT +1), tested it at 10:58, but time shows 10:15.
What time does it show?