mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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
|
// Reasonable units for time
|
||||||
const timeFormats: KeyValue<boolean> = {
|
const timeFormats: KeyValue<boolean> = {
|
||||||
dateTimeAsIso: true,
|
dateTimeAsIso: true,
|
||||||
dateTimeAsIsoSmart: true,
|
dateTimeAsIsoNoDateIfToday: true,
|
||||||
dateTimeAsUS: true,
|
dateTimeAsUS: true,
|
||||||
dateTimeAsUSSmart: true,
|
dateTimeAsUSNoDateIfToday: true,
|
||||||
|
dateTimeAsLocal: true,
|
||||||
dateTimeFromNow: true,
|
dateTimeFromNow: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ export const getStandardFieldConfigs = () => {
|
|||||||
placeholder: 'none',
|
placeholder: 'none',
|
||||||
},
|
},
|
||||||
|
|
||||||
shouldApply: (field) => field.type === FieldType.number,
|
shouldApply: () => true,
|
||||||
category,
|
category,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user