Skip to content

Commit

Permalink
Merge pull request #367 from KxSystems/ee-time
Browse files Browse the repository at this point in the history
Convert ts to utc for populate sp
  • Loading branch information
ecmel authored Jun 26, 2024
2 parents 8e2437b + 7f91ec8 commit a9763f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions src/classes/insightsConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit a9763f4

Please sign in to comment.