mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
remove debug logging
This commit is contained in:
parent
6ecff485ec
commit
c38ee5239f
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user