Skip to content

Commit

Permalink
Fix bug and remove datetime conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Jul 23, 2024
1 parent 12c02e2 commit dd2b547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,7 @@ export function getDateLiterals() {
defaultMessage: 'Choose from the time picker',
}
),
text: i18n.translate(
'kbn-esql-validation-autocomplete.esql.autocomplete.chooseFromTimePickerLabel',
{
defaultMessage: 'Choose from the time picker',
}
),
text: '',
kind: 'Issue',
detail: i18n.translate(
'kbn-esql-validation-autocomplete.esql.autocomplete.chooseFromTimePicker',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ export const TextBasedLanguagesEditor = memo(function TextBasedLanguagesEditor({
lineContent.length + 1
);

const addition = `to_datetime("${date.toISOString()}")${contentAfterCursor}`;
const addition = `"${date.toISOString()}"${contentAfterCursor}`;
editor1.current?.executeEdits('time', [
{
range: {
Expand Down

0 comments on commit dd2b547

Please sign in to comment.