hi
Using javascriptlet json to parse an api and it is returning a variable value unix timestamp as "1.41657e+09" exponential number, instead of "1416571161".
already tried js "new Date" and tasker's convert action (both as action and in js as secToDatetime) on the result but nothing comes through. The action fails with error message that the convert number failed.
Also tried "toString" inside js but it produces no result value.
I'm thinking about using a reviver on JSON, but not sure yet what it would validate or if it even works.
Any solution or ideas? thanks
More info:
I'm retrieving data from
forecast.io api. All other variables are exporting correctly as far as I can tell.
Those variables are then exported to Zooper widget pro successfully.
Only problem is with the unix timestamp, that also gets exported but is unreadable as a time/date variable.
The unix timestamp is not essential to what I want to achieve but it's bugging me to no end that I can't manage to do it :(
I have very limited, or almost none knowledge in js.