add new features

This commit is contained in:
Peter Maquiran
2023-05-24 14:26:54 +01:00
parent 033a6c331c
commit 11d9e22f11
61 changed files with 777 additions and 1509 deletions
+9
View File
@@ -850,6 +850,9 @@ export class EventsService {
const puturl = environment.apiURL + 'calendar/md';
let params = new HttpParams();
const now = new Date();
event.TimeZone = now.getTimezoneOffset().toString()
params = params.set("CalendarName", calendarName);
let options: any;
@@ -878,6 +881,9 @@ export class EventsService {
const puturl = environment.apiURL + 'calendar/pr';
let params = new HttpParams();
const now = new Date();
event.TimeZone = now.getTimezoneOffset().toString()
params = params.set("CalendarName", calendarName);
let options: any;
@@ -908,6 +914,9 @@ export class EventsService {
const puturl = environment.apiURL + 'Calendar/PostEvent';
let params = new HttpParams();
const now = new Date()
event.TimeZone = now.getTimezoneOffset().toString()
params = params.set("CalendarName", calendarName);
let options: any;
+1 -1
View File
@@ -137,7 +137,7 @@ export class TaskService {
sortArrayISODate(myArray: any): any[] {
return myArray.sort((a,b) => Date.parse(b.TaskReceiveDate || b.taskReceiveDate || b.taskStartDate || b.TaskStartDate) - Date.parse(a.TaskReceiveDate || a.taskReceiveDate || a.taskStartDate || a.TaskStartDate))
return myArray.sort((a,b) => Date.parse(b.CreateDate || b.taskStartDate || b.TaskStartDate || b.TaskReceiveDate || b.taskReceiveDate ) - Date.parse(a.CreateDate || b.taskStartDate || b.TaskStartDate || a.TaskReceiveDate || a.taskReceiveDate ))
}
reorderList(orderBy: string, list) {