From 8c8d2fe08bda4f4386cf5fe813fe30cbaab4a1e4 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Mon, 26 Jul 2021 19:18:15 +0300 Subject: [PATCH] Use dateTime vs new Date() (#37210) --- .../DatePickerWithInput/DatePickerWithInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-ui/src/components/DateTimePickers/DatePickerWithInput/DatePickerWithInput.tsx b/packages/grafana-ui/src/components/DateTimePickers/DatePickerWithInput/DatePickerWithInput.tsx index ac6b198158b..dc34ddc5a45 100644 --- a/packages/grafana-ui/src/components/DateTimePickers/DatePickerWithInput/DatePickerWithInput.tsx +++ b/packages/grafana-ui/src/components/DateTimePickers/DatePickerWithInput/DatePickerWithInput.tsx @@ -1,6 +1,6 @@ import React, { ChangeEvent } from 'react'; import { css } from '@emotion/css'; -import { dateTimeFormat } from '@grafana/data'; +import { dateTime, dateTimeFormat } from '@grafana/data'; import { DatePicker } from '../DatePicker/DatePicker'; import { Props as InputProps, Input } from '../../Input/Input'; import { useStyles } from '../../../themes'; @@ -46,7 +46,7 @@ export const DatePickerWithInput = ({ /> { onChange(ev); if (closeOnSelect) {