From c38ee5239f68d0e945b70b6e54d1032dbc2ef5ac Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Tue, 20 Dec 2022 18:53:13 +0100 Subject: [PATCH] remove debug logging --- src/platform/web/dom/TimeFormatter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/web/dom/TimeFormatter.ts b/src/platform/web/dom/TimeFormatter.ts index 7db879ea..2a98a716 100644 --- a/src/platform/web/dom/TimeFormatter.ts +++ b/src/platform/web/dom/TimeFormatter.ts @@ -61,7 +61,6 @@ export class TimeFormatter implements ITimeFormatter { formatRelativeDate(date: Date): string { let daysDiff = Math.floor((date.getTime() - this.todayMidnight.getTime()) / TimeScope.Day); - console.log("formatRelativeDate daysDiff", daysDiff, date); if (daysDiff >= -1 && daysDiff <= 1) { // Tomorrow, Today, Yesterday return capitalizeFirstLetter(this.relativeDayFormatter.format(daysDiff, "day")); @@ -80,4 +79,4 @@ export class TimeFormatter implements ITimeFormatter { function capitalizeFirstLetter(str: string) { return str.slice(0, 1).toLocaleUpperCase() + str.slice(1); -} \ No newline at end of file +}