瀏覽代碼

Avances notificaciones

Jose Brito 2 年之前
父節點
當前提交
bd93e6d2b4

+ 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;