Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -210,7 +210,7 @@ router.get('/api/waiting', async (req, res) => { | ... | @@ -210,7 +210,7 @@ router.get('/api/waiting', async (req, res) => { |
210 | if (waitingList == null) waitingList = [] | 210 | if (waitingList == null) waitingList = [] |
211 | else waitingList = waitingList.waiting; | 211 | else waitingList = waitingList.waiting; |
212 | 212 | ||
213 | - const date = new Date(); | 213 | + const date = getKSTDate(); |
214 | var hour = date.getHours(); | 214 | var hour = date.getHours(); |
215 | hour = hour < 10 ? '0' + hour.toString() : hour.toString(); | 215 | hour = hour < 10 ? '0' + hour.toString() : hour.toString(); |
216 | var minute = date.getMinutes(); | 216 | var minute = date.getMinutes(); |
... | @@ -270,7 +270,7 @@ router.get('/api/menuList', async (req, res) => { | ... | @@ -270,7 +270,7 @@ router.get('/api/menuList', async (req, res) => { |
270 | let newRequest = new XMLHttpRequest(); | 270 | let newRequest = new XMLHttpRequest(); |
271 | newRequest.onreadystatechange = () => { | 271 | newRequest.onreadystatechange = () => { |
272 | if (newRequest.status == 200 && newRequest.readyState == 4) { | 272 | if (newRequest.status == 200 && newRequest.readyState == 4) { |
273 | - var dt = new Date(); | 273 | + var dt = getKSTDate(); |
274 | if (dt.getDay() == 0 || dt.getDay() == 6) { | 274 | if (dt.getDay() == 0 || dt.getDay() == 6) { |
275 | resJSON0 = JSON.parse(newRequest.responseText).root[0].LASTNEXT[0] | 275 | resJSON0 = JSON.parse(newRequest.responseText).root[0].LASTNEXT[0] |
276 | resJSON1 = JSON.parse(newRequest.responseText).root[0].LASTNEXT[1] | 276 | resJSON1 = JSON.parse(newRequest.responseText).root[0].LASTNEXT[1] |
... | @@ -318,7 +318,7 @@ router.get('/api/todayMenu', async (req, res) => { | ... | @@ -318,7 +318,7 @@ router.get('/api/todayMenu', async (req, res) => { |
318 | let newRequest = new XMLHttpRequest(); | 318 | let newRequest = new XMLHttpRequest(); |
319 | newRequest.onreadystatechange = () => { | 319 | newRequest.onreadystatechange = () => { |
320 | if (newRequest.status == 200 && newRequest.readyState == 4) { | 320 | if (newRequest.status == 200 && newRequest.readyState == 4) { |
321 | - var dt = new Date(); | 321 | + var dt = getKSTDate(); |
322 | if (dt.getDay() > 0 && dt.getDay() < 6) { | 322 | if (dt.getDay() > 0 && dt.getDay() < 6) { |
323 | resJSON = JSON.parse(newRequest.responseText).root[0].WEEKLYMENU[0]; | 323 | resJSON = JSON.parse(newRequest.responseText).root[0].WEEKLYMENU[0]; |
324 | const weekMenu = setting(resJSON); | 324 | const weekMenu = setting(resJSON); | ... | ... |
-
Please register or login to post a comment