浏览代码

Merge branch 'master' of http://209.50.56.224/git/ITTEC/SistemaMantenimiento

JeanBenitez 2 年之前
父节点
当前提交
8e2e62315a

+ 1 - 1
sistema-mantenimiento-front/src/app/components/template/template.component.ts

@@ -545,7 +545,7 @@ export class TemplateComponent implements OnInit {
             }
           }
           
-          notification.FECREG = this._functionsService.orderDate(notification.FECREG)!;
+          notification.FECREG = this._functionsService.notificationDate(notification.FECREG)!;
           notificationsArr.push(notification);
         }
 

+ 6 - 0
sistema-mantenimiento-front/src/app/services/functions.service.ts

@@ -35,6 +35,12 @@ export class FunctionsService {
     return `${dateStr} ${timeStr} ${period}`;
   }
 
+  notificationDate(date: string): string{
+    let dateObj = new Date(date);
+    console.log(dateObj);
+    return "";
+  }
+
   buildHumanDate(date: string): string{
     let dateArr = date.split('-').reverse();
     let monthInd = parseInt(dateArr[1]) - 1;