diff --git a/frontend/src/app/components/datetime/timezone.service.ts b/frontend/src/app/components/datetime/timezone.service.ts index 12c235c449..e5ddc82da0 100644 --- a/frontend/src/app/components/datetime/timezone.service.ts +++ b/frontend/src/app/components/datetime/timezone.service.ts @@ -122,9 +122,9 @@ export class TimezoneService { */ public daysFromToday(dateString:string):number { const date = this.parseDate(dateString); - const today = moment(); + const today = moment().startOf('day'); - return date.diff(today, 'days') + return date.diff(today, 'days'); } public formattedTime(datetimeString:string) {