diff --git a/lib/Connection.js b/lib/Connection.js index 619862ff..8a6a290c 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -338,7 +338,7 @@ Connection.prototype.append = function(data, options, cb) { if (!isDate(options.date)) throw new Error('`date` is not a Date object'); cmd += ' "'; - cmd += options.date.getDate(); + cmd += ('0' + options.date.getDate()).slice(-2); cmd += '-'; cmd += MONTHS[options.date.getMonth()]; cmd += '-';