diff --git a/public/app/plugins/panel/table/renderer.ts b/public/app/plugins/panel/table/renderer.ts index 524aa06343b..e4cc54e9c40 100644 --- a/public/app/plugins/panel/table/renderer.ts +++ b/public/app/plugins/panel/table/renderer.ts @@ -91,7 +91,14 @@ export class TableRenderer { if (_.isArray(v)) { v = v[0]; } + + // if is an epoch (numeric string and len > 12) + if (_.isString(v) && !isNaN(v) && v.length > 12) { + v = parseInt(v, 10); + } + let date = moment(v); + if (this.isUtc) { date = date.utc(); } diff --git a/public/app/plugins/panel/table/specs/renderer.test.ts b/public/app/plugins/panel/table/specs/renderer.test.ts index f29c69e4acd..f9ccc574c91 100644 --- a/public/app/plugins/panel/table/specs/renderer.test.ts +++ b/public/app/plugins/panel/table/specs/renderer.test.ts @@ -186,6 +186,21 @@ describe('when rendering table', () => { expect(html).toBe('