From ae9f487b39152e774027b1c98236d3614294f054 Mon Sep 17 00:00:00 2001 From: "pakintada@gmail.com" Date: Mon, 29 Jan 2024 15:15:28 +0700 Subject: [PATCH] change recipe timetamp to no datepipe --- client/src/app/core/models/recipe.model.ts | 2 +- client/src/app/features/recipes/recipes.component.html | 2 +- client/src/app/features/recipes/recipes.component.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/app/core/models/recipe.model.ts b/client/src/app/core/models/recipe.model.ts index 8021c79..09de8aa 100644 --- a/client/src/app/core/models/recipe.model.ts +++ b/client/src/app/core/models/recipe.model.ts @@ -10,7 +10,7 @@ export type RecipeOverview = { export type RecipesDashboard = { configNumber: number; - LastUpdated: Date; + lastUpdated: String; filename: string; }; diff --git a/client/src/app/features/recipes/recipes.component.html b/client/src/app/features/recipes/recipes.component.html index d72a2be..2bfca8b 100644 --- a/client/src/app/features/recipes/recipes.component.html +++ b/client/src/app/features/recipes/recipes.component.html @@ -210,7 +210,7 @@ Last Updated: {{ - recipesDashboard.configNumber | date : "dd-MMM-yyyy hh:mm:ss" + recipesDashboard.lastUpdated }} diff --git a/client/src/app/features/recipes/recipes.component.ts b/client/src/app/features/recipes/recipes.component.ts index c9b2ce1..c6740b9 100644 --- a/client/src/app/features/recipes/recipes.component.ts +++ b/client/src/app/features/recipes/recipes.component.ts @@ -179,6 +179,7 @@ export class RecipesComponent implements OnInit, OnDestroy, AfterViewInit { this.recipesDashboard$.subscribe((data) => { this.currentVersion = data.configNumber; console.log('current version', this.currentVersion); + console.log("data : ", data); }); console.log('ngAfterViewInit::department', this.department);