Ver Fonte

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

Brett Zamir há 6 anos atrás
pai
commit
9aadf6da1d
1 ficheiros alterados com 1 adições e 1 exclusões
  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()