change recipe timetamp to no datepipe

This commit is contained in:
pakintada@gmail.com 2024-01-29 15:15:28 +07:00
parent 03b65399df
commit ae9f487b39
3 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ export type RecipeOverview = {
export type RecipesDashboard = { export type RecipesDashboard = {
configNumber: number; configNumber: number;
LastUpdated: Date; lastUpdated: String;
filename: string; filename: string;
}; };

View file

@ -210,7 +210,7 @@
<span class="" <span class=""
>Last Updated: >Last Updated:
{{ {{
recipesDashboard.configNumber | date : "dd-MMM-yyyy hh:mm:ss" recipesDashboard.lastUpdated
}}</span }}</span
> >
</div> </div>

View file

@ -179,6 +179,7 @@ export class RecipesComponent implements OnInit, OnDestroy, AfterViewInit {
this.recipesDashboard$.subscribe((data) => { this.recipesDashboard$.subscribe((data) => {
this.currentVersion = data.configNumber; this.currentVersion = data.configNumber;
console.log('current version', this.currentVersion); console.log('current version', this.currentVersion);
console.log("data : ", data);
}); });
console.log('ngAfterViewInit::department', this.department); console.log('ngAfterViewInit::department', this.department);