From: NicolausVanSchie Date: Sun, 29 Apr 2018 08:26:02 +0000 (+1000) Subject: changes the path to use iso string, as locale string has /s X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=d73f72b52cfff9b833a922a166d105be7d8a357d;p=yn%2Fyn-odasweb.git changes the path to use iso string, as locale string has /s --- diff --git a/audio-recorder.js b/audio-recorder.js index 632224d..a3cfa54 100644 --- a/audio-recorder.js +++ b/audio-recorder.js @@ -111,7 +111,7 @@ exports.AudioRecorder = class AudioRecorder extends EventEmitter { console.log(`Recorder ${this.index} started`) console.log(`Recorder ${this.index} was ${this.active} active`) - let filename = path.join(this.workspacePath, `ODAS_${id}_${new Date().toLocaleString()}_${this.suffix}.wav`) + let filename = path.join(this.workspacePath, `ODAS_${id}_${new Date().toISOString()}_${this.suffix}.wav`) this.path = filename try {