mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add new features
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user