박지환

Test time set

......@@ -33,10 +33,11 @@ app.use(static(__dirname));
// To get today date by using Date
function getTodayDate() {
var tempDate = new Date();
console.log("[tempDate] " + tempDate);
const utc = tempDate.getTime() + tempDate.getTimezoneOffset() * 60 * 1000;
const KR_TIME_DIFF = 9 * 60 * 60 * 1000;
const today = new Date(utc + KR_TIME_DIFF);
console.log(today);
console.log("[today] " + today);
var year = today.getFullYear();
var month = ("0" + (today.getMonth() + 1)).slice(-2);
var day = ("0" + today.getDate()).slice(-2);
......