diff --git a/lib/connection.js b/lib/connection.js index 6e249a5..6354031 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -881,7 +881,7 @@ FTP.prototype.lastMod = function(path, cb) { if (!val) return cb(new Error('Invalid date/time format from server')); ret = new Date(val.year + '-' + val.month + '-' + val.date + 'T' + val.hour - + ':' + val.minute + ':' + val.second); + + ':' + val.minute + ':' + val.second + 'Z'); cb(undefined, ret); }); };