diff --git a/calendar.html b/calendar.html
index 4a3634a..2d6d4e9 100644
--- a/calendar.html
+++ b/calendar.html
@@ -373,7 +373,7 @@
calSpacing.cellPadding = 1;
}
- // document.getElementById('calHeader').style.display = "block"; //Breaks the calendar
+ document.getElementById('calHeader').style = "";
}
diff --git a/main.js b/main.js
index 5240537..091f4bf 100644
--- a/main.js
+++ b/main.js
@@ -74,8 +74,14 @@ app.post('/user', async(request, response) => {
connection.then((client) => {
const sessionId = uuidv4();
+ //Used for database clearing
+ const d = new Date();
+ d.setHours(0);
+ d.setMinutes(0);
+ d.setSeconds(0);
+
const dbo = client.db('main').collection('sessions');
- dbo.insertOne({ sessionId: sessionId, userId: id, guilds: JSON.stringify(guilds), currentServer: null });
+ dbo.insertOne({ sessionId: sessionId, userId: id, guilds: JSON.stringify(guilds), currentServer: null, timeStamp: d.getTime() });
response.send(sessionId);
});