Commit 907d3a2a by Torkel Ödegaard Committed by GitHub

StatPanel: Fixes issue formatting date values using unit option (#30979)

parent 549a2bab
...@@ -27,9 +27,10 @@ interface DisplayProcessorOptions { ...@@ -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 = () => { ...@@ -77,7 +77,7 @@ export const getStandardFieldConfigs = () => {
placeholder: 'none', placeholder: 'none',
}, },
shouldApply: (field) => field.type === FieldType.number, shouldApply: () => true,
category, category,
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment