diff --git a/src/app/components/history/history-list/history-list.component.ts b/src/app/components/history/history-list/history-list.component.ts index 3737260d..e178c052 100644 --- a/src/app/components/history/history-list/history-list.component.ts +++ b/src/app/components/history/history-list/history-list.component.ts @@ -7,7 +7,7 @@ import { Component } from '@angular/core'; }) export class HistoryListComponent { - dateGte: Date = new Date('1970-01-01Z00:00:00:000'); + dateGte: Date = new Date(new Date().setFullYear(1753));; dateLt: Date = new Date(); constructor() { diff --git a/src/app/components/promo/promo/promo.component.ts b/src/app/components/promo/promo/promo.component.ts index 5122ba26..c014525a 100644 --- a/src/app/components/promo/promo/promo.component.ts +++ b/src/app/components/promo/promo/promo.component.ts @@ -11,7 +11,7 @@ export class PromoComponent implements OnInit { title: string; dateGte: Date = new Date(); - dateLt: Date = new Date('2099-12-31Z23:59:59:999'); + dateLt: Date = new Date(new Date().setFullYear(2099));; constructor() { }