diff --git a/packages/@ourworldindata/core-table/src/CoreTableColumns.ts b/packages/@ourworldindata/core-table/src/CoreTableColumns.ts index 64b355d867e..8c08d7f2489 100644 --- a/packages/@ourworldindata/core-table/src/CoreTableColumns.ts +++ b/packages/@ourworldindata/core-table/src/CoreTableColumns.ts @@ -26,6 +26,7 @@ import { IndicatorTitleWithFragments, max, min, + capitalize, } from "@ourworldindata/utils" import { CoreTable } from "./CoreTable.js" import { @@ -837,6 +838,10 @@ export abstract class TimeColumn extends AbstractCoreColumn { abstract preposition: string + @imemo get displayName(): string { + return capitalize(this.name) + } + formatTime(time: number): string { return this.formatValue(time) }