Hi all!
I'm trying to store the time it takes for each user to go through a passage and thought about using the time() function in Sugarcube.
I declared a variable and I'm setting it like this afterwards:
<<set $a1 = time()>>
but I get the message that 'time' is not defined.
I also tried using Date.now() inside a <<script>> tag but no luck there either

Any clues?
Comments
If you installed SugarCube 2, you likely forgot to choose it as your project's story format—or selected v1 by mistake.