mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
feat(formatters): Add custom d3-time-format locale (#24263)
This commit is contained in:
@@ -21,7 +21,7 @@ import moment from 'moment';
|
||||
import {
|
||||
getTimeFormatter,
|
||||
getTimeFormatterForGranularity,
|
||||
smartDateFormatter,
|
||||
SMART_DATE_ID,
|
||||
TimeGranularity,
|
||||
} from '@superset-ui/core';
|
||||
|
||||
@@ -41,6 +41,6 @@ export const getDateFormatter = (
|
||||
granularity?: TimeGranularity,
|
||||
fallbackFormat?: string | null,
|
||||
) =>
|
||||
timeFormat === smartDateFormatter.id
|
||||
timeFormat === SMART_DATE_ID
|
||||
? getTimeFormatterForGranularity(granularity)
|
||||
: getTimeFormatter(timeFormat ?? fallbackFormat);
|
||||
|
||||
Reference in New Issue
Block a user