Skip to content

Commit

Permalink
Update date format to UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeYvas committed Sep 26, 2024
1 parent 31fd84b commit a265aa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { DATA_TYPES } from '../../../../constants/dataTypes';
import { COLUMN_KEYS } from '../../../../constants/columnKeys';
import { OPERATORS } from '../../../../constants/operators';
import { SelectionContainer } from '../SelectionContainer/SelectionContainer';
import { ISO_FORMAT } from '../../helpers/timeUtils';
import { UTC_FORMAT } from '../../helpers/timeUtils';

import css from '../../../QueryBuilder.css';
import { staticBooleanOptions } from '../../helpers/selectOptions';
Expand Down Expand Up @@ -95,7 +95,7 @@ export const DataTypeInput = ({
const datePickerControl = () => (
<Datepicker
data-testid="data-input-dateType"
backendDateStandard={ISO_FORMAT}
backendDateStandard={UTC_FORMAT}
onChange={(e, value, formattedValue) => {
onChange(formattedValue, index, COLUMN_KEYS.VALUE);
}}
Expand Down
1 change: 1 addition & 0 deletions src/QueryBuilder/QueryBuilder/helpers/timeUtils.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const ISO_FORMAT = 'YYYY-MM-DD';
export const UTC_FORMAT = 'YYYY-MM-DDTHH:MM:SS';

0 comments on commit a265aa9

Please sign in to comment.