diff --git a/functions.js b/functions.js index 5aa0c25..9cca308 100644 --- a/functions.js +++ b/functions.js @@ -104,9 +104,9 @@ const pushToGhost = async (postSlug) => { // Decide WebDAV upload path current_date = new Date() - var uploadPath = path.join( + const uploadPath = path.join( current_date.getUTCFullYear().toString(), - current_date.getUTCMonth().toString(), + (current_date.getUTCMonth() + 1).toString(), postSlug )