浏览代码

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

Brett Zamir 6 年之前
父节点
当前提交
9aadf6da1d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()