diff --git a/util/convertDateToISOString.js b/util/convertDateToISOString.js index 764c279..3f01362 100644 --- a/util/convertDateToISOString.js +++ b/util/convertDateToISOString.js @@ -1,3 +1,6 @@ module.exports = function (date){ - return date.getUTCFullYear() + '-' + ('0' + (date.getUTCMonth()+1)).slice(-2) + '-' + ('0' + date.getUTCDate()).slice(-2)+" "+date.getUTCHours()+":"+date.getUTCMinutes()+":"+date.getUTCSeconds(); -} \ No newline at end of file + + + + return date.getUTCFullYear() + '-' + ('0' + (date.getUTCMonth()+1)).slice(-2) + '-' + ('0' + date.getUTCDate()).slice(-2)+" "+('0' + date.getUTCHours()).slice(-2)+":"+('0' + date.getUTCMinutes()).slice(-2)+":"+('0'+date.getUTCSeconds()).slice(-2); +} \ No newline at end of file