I’m having a strange issue with javascript : when stocking a new Date().getTime() in a certain variable, it goes to 0.
console.log(new Date().getTime()); // Shows the timestamp
p.channels[p.chann].startTime = new Date().getTime();
console.log(p.channels[p.chann].startTime); // Shows 0
The variable p.channels[p.chann].startTime totally exists (and would otherwise show an error anyway…)
Does anyone know where this problem could come from ? Oo
The problem was that, my variable being an Audio element, I could create the startTime value in it, but it was set to 0 and couldn’t be set to anything else.