Skip to content

Commit

Permalink
fixed number problem on date
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Jul 31, 2024
1 parent bc38e71 commit a082c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Status.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export let statuses: Status[];
const calculateDifferenceInDays = (firstDate: Date, secondDate: Date): number =>
Math.ceil(Math.abs(+firstDate - +secondDate) / (1000 * 60 * 60 * 24));
Math.ceil(Math.abs(+firstDate - +secondDate) / (1000 * 60 * 60 * 24)) + 1;
let message = 'Lacking historical data';
let lastStatus: Status = { status: StatusCode.ERROR, date: new Date() };
Expand Down

0 comments on commit a082c06

Please sign in to comment.