Pārlūkot izejas kodu

- Fix: JavaScript `Date` `getDay` is for day of week; should be `getDate`

Brett Zamir 6 gadi atpakaļ
vecāks
revīzija
9aadf6da1d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      api/controllers/bDateController.js

+ 1 - 1
api/controllers/bDateController.js

@@ -58,7 +58,7 @@ function getTodayJSON () {
     greg_date: {
       year: now.getFullYear(),
       month: now.getMonth() + 1,
-      day: now.getDay(),
+      day: now.getDate(),
       hour: now.getHours(),
       minute: now.getMinutes(),
       second: now.getSeconds()