remove debug logging

This commit is contained in:
Bruno Windels 2022-12-20 18:53:13 +01:00
parent 6ecff485ec
commit c38ee5239f

View File

@ -61,7 +61,6 @@ export class TimeFormatter implements ITimeFormatter {
formatRelativeDate(date: Date): string { formatRelativeDate(date: Date): string {
let daysDiff = Math.floor((date.getTime() - this.todayMidnight.getTime()) / TimeScope.Day); let daysDiff = Math.floor((date.getTime() - this.todayMidnight.getTime()) / TimeScope.Day);
console.log("formatRelativeDate daysDiff", daysDiff, date);
if (daysDiff >= -1 && daysDiff <= 1) { if (daysDiff >= -1 && daysDiff <= 1) {
// Tomorrow, Today, Yesterday // Tomorrow, Today, Yesterday
return capitalizeFirstLetter(this.relativeDayFormatter.format(daysDiff, "day")); return capitalizeFirstLetter(this.relativeDayFormatter.format(daysDiff, "day"));