diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e235216..cee96a94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ All notable changes to the **kdb VS Code extension** are documented in this file - Fixed delay when executing query on KDB+ connections - Make connection names case insensitive - Fixed GUID type displayed as number for Insights +- Fixed time zone for populate scratchpad ### Internal Improvements diff --git a/src/classes/insightsConnection.ts b/src/classes/insightsConnection.ts index 44d69a8a..f38bc297 100644 --- a/src/classes/insightsConnection.ts +++ b/src/classes/insightsConnection.ts @@ -31,6 +31,7 @@ import { tokenUndefinedError, } from "../utils/core"; import { InsightsConfig, InsightsEndpoints } from "../models/config"; +import { convertTimeToTimestamp } from "../utils/dataSource"; export class InsightsConnection { public connected: boolean; @@ -282,8 +283,8 @@ export class InsightsConnection { case DataSourceTypes.API: queryParams = { table: params.dataSource.api.table, - startTS: params.dataSource.api.startTS, - endTS: params.dataSource.api.endTS, + startTS: convertTimeToTimestamp(params.dataSource.api.startTS), + endTS: convertTimeToTimestamp(params.dataSource.api.endTS), }; coreUrl = this.connEndpoints.scratchpad.import; dsTypeString = "API";