Change upload path month to be 1-indexed instead of 0-indexed

Jan=1 and Dec=12, not Jan=0 and Dec=11. Because that's just too
confusing ;P
This commit is contained in:
Hippo 2020-01-01 21:33:57 +05:30
parent dd79830afd
commit 821111df5e

View file

@ -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
)