From 7ebbf4627626f219620258dc09f8a75696026142 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 2 Jan 2021 10:50:13 -0600 Subject: Fix date month formatting and add category undefined check --- src/server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/index.js') 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) { -- cgit v1.2.3