mirror of
https://github.com/grafana/grafana.git
synced 2025-01-15 19:22:34 -06:00
StatPanel: Fixes issue formatting date values using unit option (#30979)
This commit is contained in:
parent
549a2bab3b
commit
907d3a2aac
@ -27,9 +27,10 @@ interface DisplayProcessorOptions {
|
||||
// Reasonable units for time
|
||||
const timeFormats: KeyValue<boolean> = {
|
||||
dateTimeAsIso: true,
|
||||
dateTimeAsIsoSmart: true,
|
||||
dateTimeAsIsoNoDateIfToday: true,
|
||||
dateTimeAsUS: true,
|
||||
dateTimeAsUSSmart: true,
|
||||
dateTimeAsUSNoDateIfToday: true,
|
||||
dateTimeAsLocal: true,
|
||||
dateTimeFromNow: true,
|
||||
};
|
||||
|
||||
|
@ -77,7 +77,7 @@ export const getStandardFieldConfigs = () => {
|
||||
placeholder: 'none',
|
||||
},
|
||||
|
||||
shouldApply: (field) => field.type === FieldType.number,
|
||||
shouldApply: () => true,
|
||||
category,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user