Skip to content

Commit

Permalink
fix absolute dates
Browse files Browse the repository at this point in the history
  • Loading branch information
DonCorleone committed Apr 13, 2021
1 parent ddaa85d commit 4a278fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/promo/promo/promo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down

0 comments on commit 4a278fa

Please sign in to comment.