lrf402788946 4 년 전
부모
커밋
9f6c36bc39
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/lesson.js

+ 1 - 1
app/service/lesson.js

@@ -322,7 +322,7 @@ class LessonService extends CrudService {
       let lydata = await this.getLyTeacherMsg(classInfo);
       // 整理信息
       data = { ...data, ...defaults, termid, classid, planyearid, planid };
-      const dirIsBefore = moment().isBefore(classInfo.startdate); // isSameOrBefore
+      const dirIsBefore = moment(moment().format('YYYY-MM-DD')).isSameOrBefore(classInfo.startdate); // isSameOrBefore
       console.log(`${classInfo.headteacher}-${dirIsBefore}`);
       if (dirIsBefore) {
         noticeList.push(data);