My agent delivers strange timestamps.
Date gives me 4/11/2014 19:37 so it’s about two months off.
local time = date(time()+3600, ["day", "month", "year", "hour", "min"]); local snd_str = "sql=INSERT INTO "+codes.table_id+" (Time, Temp, Light, Activity) VALUES ('"+time.day+"/"+time.month+1+"/"+time.year+" "+(time.hour)+":"+format("%i", time.min)+......)"; server.log(snd_str);
The code had no problems of this kind the last time i ran in, in november.