Skip to content

Commit

Permalink
Fixed incorrect january index in date func
Browse files Browse the repository at this point in the history
  • Loading branch information
warmans committed Jan 31, 2024
1 parent d37df6b commit 7b459d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class CatalogWarehouseComponent implements OnInit, OnDestroy {

ngOnInit(): void {

let startDate = new Date(2003, 1, 25, 12, 10, 0, 0)
let startDate = new Date(2003, 0, 25, 12, 10, 0, 0)
this.valueInPence = INITIAL_PENCE_OWED + (differenceInSeconds(new Date(), startDate) * PENCE_PER_SECOND);
this.inDebtDays = differenceInDays(new Date(), startDate);

Expand Down

0 comments on commit 7b459d9

Please sign in to comment.