feat(mongodb): support timezone-aware date display

Closes #10211
This commit is contained in:
t8y2 committed 2026-09-27 18:13:29 +00:00
1 parent 654443d6ab
commit 72f8330539
3 files changed
+135 -5

No files matched your search

@@ -6512,11 +6512,11 @@ function primitiveCellFormatKey(value: CellValue, columnIndex?: number): string
}
function formatCell(value: CellValue, columnIndex?: number, originalBytes?: number, limitDisplay = true): string {
const formatter = columnIndex === undefined ? undefined : resolvedColumnFormatters.value[columnIndex];
if (props.mongoCollectionGrid) {
const documentGridText = mongoDocumentGridDisplayText(value);
const documentGridText = mongoDocumentGridDisplayText(value, formatter);
if (documentGridText !== undefined) return documentGridText;
}
const formatter = columnIndex === undefined ? undefined : resolvedColumnFormatters.value[columnIndex];
if (formatter?.kind === "foreign-key-display" && columnIndex !== undefined) {
const display = formatForeignKeyCellDisplay(value, columnIndex);
return limitDisplay ? limitDataGridCellDisplay(display, resolvedDatabaseType.value === "sqlserver" ? SQLSERVER_DATA_GRID_CELL_DISPLAY_MAX_LENGTH : undefined) : display;