aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/index.js')
-rw-r--r--src/server/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/index.js b/src/server/index.js
index c34e9d6..582d482 100644
--- a/src/server/index.js
+++ b/src/server/index.js
@@ -42,7 +42,7 @@ function consumeMessage(res){
}
}
function dateToString(d){
- return `${d.getFullYear().toString()}/${d.getMonth().toString()}/${d.getDate().toString()}`
+ return `${d.getFullYear().toString()}/${(d.getMonth()+1).toString()}/${d.getDate().toString()}`
}
function setUpRoutes(models, jwtFunctions, database, templates) {