0
WvWesley van Wyk
The code tries to convert a timestamp to an ISO string. If an error occurs, the code returns "unknown".
0 Comments
function() { try { var timestamp = new Date(); timestamp.setHours(timestamp.getHours() + 2); var time = timestamp.toISOString(); return time; } catch(e) { return "unknown"; } }