diff --git a/lib/utils.js b/lib/utils.js index 9dc54538..267f3972 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -67,13 +67,13 @@ function dateToString(date) { } var offset = -date.getTimezoneOffset(); - var ret = pad(date.getFullYear(), 4) + '-' - + pad(date.getMonth() + 1, 2) + '-' - + pad(date.getDate(), 2) + 'T' - + pad(date.getHours(), 2) + ':' - + pad(date.getMinutes(), 2) + ':' - + pad(date.getSeconds(), 2) + '.' - + pad(date.getMilliseconds(), 3); + var ret = pad(date.getFullYear(), 4) + '-' + + pad(date.getMonth() + 1, 2) + '-' + + pad(date.getDate(), 2) + 'T' + + pad(date.getHours(), 2) + ':' + + pad(date.getMinutes(), 2) + ':' + + pad(date.getSeconds(), 2) + '.' + + pad(date.getMilliseconds(), 3); if(offset < 0) { ret += "-";