Skip to content

Commit

Permalink
[APPS-2110] migrated dependency from moment to date-fns (#8829)
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin2008 committed Aug 17, 2023
1 parent 3e56b9a commit 03b9372
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import { Component, OnInit, OnDestroy } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl, AbstractControl } from '@angular/forms';
import { ActivatedRoute, Params } from '@angular/router';
import { debounceTime, takeUntil } from 'rxjs/operators';
import moment from 'moment';
import { Subject } from 'rxjs';
import { set } from 'date-fns';

const DEFAULT_SIZE = 20;

Expand Down Expand Up @@ -160,11 +160,10 @@ export class TaskListDemoComponent implements OnInit, OnDestroy {
}

setDueAfterFilter(date): string {
const dueDateFilter = moment(date);
dueDateFilter.set({
hour: 23,
minute: 59,
second: 59
const dueDateFilter = set(new Date(date), {
hours: 23,
minutes: 59,
seconds: 59
});
return dueDateFilter.toString();
}
Expand Down

0 comments on commit 03b9372

Please sign in to comment.