diff --git a/src/index.ts b/src/index.ts index 222c765..3b5b69f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -217,12 +217,9 @@ const createBlock = ( data.wasRewarded = false; } - // Store the timestamp - const timestamp = new Date() - .toISOString() - .replace(/z|t/gi, " ") - .trim(); - jsPsych.data.addDataToLastTrial({ timestamp }); + // Store the trial end time + const trialEndTime = Date.now(); + jsPsych.data.addDataToLastTrial({ trialEndTime }); }, }, {