Przeglądaj źródła

时间显示函数修改

xujunjie 1 rok temu
rodzic
commit
1ba80619fb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/function/functionImplementation.js

+ 1 - 1
src/function/functionImplementation.js

@@ -11667,7 +11667,7 @@ const functionImplementation = {
                 date = dayjs(start_date).add(months, 'months');
             } else {
                 // v为与1900-1-1 0:00:00这个时刻的差值(以天为单位)
-                date = dayjs("1900-01-01 00:00:00").add(start_date,'day').add(months, 'months');
+                date = dayjs("1900-01-01 00:00:00").add(start_date,'day').add(months, 'months').startOf("month");
             }
             var mask = genarate(dayjs(date).format("YYYY-MM-DD h:mm:ss"));