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(); }