From 8b2a408dea5516cc5163446280ad10c165da0f92 Mon Sep 17 00:00:00 2001 From: "JUST.in DO IT" Date: Fri, 1 Sep 2023 11:28:19 -0700 Subject: [PATCH] fix(sqllab): Invalid start date (#25133) --- .../SqlLab/components/QueryAutoRefresh/index.tsx | 1 + .../src/SqlLab/components/QueryTable/index.tsx | 2 +- .../SqlLab/components/SaveDatasetModal/index.tsx | 2 +- .../src/SqlLab/reducers/getInitialState.ts | 15 ++++++++++++++- superset-frontend/src/SqlLab/reducers/sqlLab.js | 6 ++++++ .../src/SqlLab/reducers/sqlLab.test.js | 10 +++++++++- 6 files changed, 32 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/QueryAutoRefresh/index.tsx b/superset-frontend/src/SqlLab/components/QueryAutoRefresh/index.tsx index d8975e520c370..f4808f52fdad2 100644 --- a/superset-frontend/src/SqlLab/components/QueryAutoRefresh/index.tsx +++ b/superset-frontend/src/SqlLab/components/QueryAutoRefresh/index.tsx @@ -80,6 +80,7 @@ function QueryAutoRefresh({ SupersetClient.get({ endpoint: `/api/v1/query/updated_since?q=${params}`, timeout: QUERY_TIMEOUT_LIMIT, + parseMethod: 'json-bigint', }) .then(({ json }) => { if (json) { diff --git a/superset-frontend/src/SqlLab/components/QueryTable/index.tsx b/superset-frontend/src/SqlLab/components/QueryTable/index.tsx index 1ea83de58c58a..b5eaeb01e6586 100644 --- a/superset-frontend/src/SqlLab/components/QueryTable/index.tsx +++ b/superset-frontend/src/SqlLab/components/QueryTable/index.tsx @@ -213,7 +213,7 @@ const QueryTable = ({ {q.db} ); - q.started = moment(q.startDttm).format('HH:mm:ss'); + q.started = moment(q.startDttm).format('L HH:mm:ss'); q.querylink = (