From 2b21af3511a583372e7e4a468fae66a64424dfed Mon Sep 17 00:00:00 2001 From: "tiago.kayaya" Date: Fri, 20 Aug 2021 16:44:48 +0100 Subject: [PATCH] set duration --- src/app/pages/chat/chat.page.ts | 2 +- src/app/pages/gabinete-digital/gabinete-digital.page.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/chat/chat.page.ts b/src/app/pages/chat/chat.page.ts index 3385911d9..16c295461 100644 --- a/src/app/pages/chat/chat.page.ts +++ b/src/app/pages/chat/chat.page.ts @@ -397,7 +397,7 @@ hideRefreshButton(){ } } else{ - let date = (start.getDay()+1) + "/" + (start.getMonth()+1) + "/" + start.getFullYear(); + let date = start.getDate() + "/" + (start.getMonth()+1) + "/" + start.getFullYear(); return date; } } diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.ts b/src/app/pages/gabinete-digital/gabinete-digital.page.ts index 3fb1fae68..9bf903b4f 100644 --- a/src/app/pages/gabinete-digital/gabinete-digital.page.ts +++ b/src/app/pages/gabinete-digital/gabinete-digital.page.ts @@ -154,7 +154,7 @@ export class GabineteDigitalPage implements OnInit, DoCheck { } const pathname = window.location.pathname - + this.router.events.forEach((event) => { if(event instanceof NavigationEnd && event.url == pathname) { @@ -266,7 +266,7 @@ export class GabineteDigitalPage implements OnInit, DoCheck { } getCustomDate(thedate: Date){ - return (thedate.getDay()+1) + "/" + + return thedate.getDate() + "/" + (thedate.getMonth()+1) + "/" + thedate.getFullYear(); }