From cd420e8eda75aea0d476fcf910e20a072fb2215f Mon Sep 17 00:00:00 2001 From: Uros Gaber Date: Mon, 30 Dec 2019 14:08:58 +0100 Subject: [PATCH] Update mlsd.js Fixed UTC date creation for remote files --- lib/mlsd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mlsd.js b/lib/mlsd.js index 5165fea..70ef4f0 100644 --- a/lib/mlsd.js +++ b/lib/mlsd.js @@ -96,7 +96,7 @@ module.exports = function(path, zcomp, cb) { var minute = modify.substr( 10, 2 ); var second = modify.substr( 12, 2 ); obj.date = new Date( - year + '-' + month + '-' + date + 'T' + hour + ':' +minute + ':' + second + year + '-' + month + '-' + date + 'T' + hour + ':' +minute + ':' + second + '+00:00' ); }