changes the path to use iso string, as locale string has /s
authorNicolausVanSchie <Nicko21.nvs@gmail.com>
Sun, 29 Apr 2018 08:26:02 +0000 (18:26 +1000)
committerNicolausVanSchie <Nicko21.nvs@gmail.com>
Sun, 29 Apr 2018 08:26:02 +0000 (18:26 +1000)
audio-recorder.js

index 632224d7495b6b11f3bacfa4ac05144d32edde7d..a3cfa54d3f864614ec39807298edf67f0f9ce010 100644 (file)
@@ -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 {