Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert ts to utc for populate sp #367

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading