mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user