teste new formate date

This commit is contained in:
tiago.kayaya
2021-02-09 15:39:39 +01:00
parent 021368a04f
commit 174bca6c0e
223 changed files with 3387 additions and 1906 deletions
+6 -1
View File
@@ -139,12 +139,17 @@ export class EventsPage implements OnInit {
RefreshEvents(){
this.showLoader = true;
let date = new Date();
date.setMonth(date.getMonth() + 1);
let start = date.getFullYear()+"-"+ date.getMonth()+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+ ":"+date.getSeconds();
let end = date.getFullYear()+"-"+ date.getMonth()+"-"+date.getDate()+" 23:59:59";
switch (this.segment)
{
case "Combinada":
if(this.profile == "mdgpr"){
this.eventService.getAllMdEvents(this.today.toLocaleString(), this.todayEnd.toLocaleString()).subscribe(res => {
this.eventService.getAllMdEvents(start, end).subscribe(res => {
this.eventsList = res;
if(res.length > 0){
+2 -2
View File
@@ -128,8 +128,8 @@ export class LoginPage implements OnInit {
BasicAuthKey: ""
}
if (await this.authService.login(this.userattempt)) {
/* this.loginRocketChat(); */
this.storeUserIdANdToken()
this.loginRocketChat(this.userattempt);
this.storeUserIdANdToken();
this.router.navigate(['/home/events']);
}