From 1a353a1eea10f9b8120966f650f3dfc704b0a564 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 26 Jul 2021 18:48:36 +0200 Subject: [PATCH] Use dateTime vs new Date() (#37210) (#37215) (cherry picked from commit 8c8d2fe08bda4f4386cf5fe813fe30cbaab4a1e4) Co-authored-by: Alex Khomenko --- .../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) {