Use start of today for date diff

pull/6336/head
Oliver Günther 6 years ago
parent 9f05241a15
commit 6ef1a5862b
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      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) {

Loading…
Cancel
Save