From d118a988d5233a282cea4f878ee4a569c2d413fc Mon Sep 17 00:00:00 2001 From: anika-ahluwalia Date: Sun, 28 Jun 2020 13:19:34 -0500 Subject: slight modification to date --- src/client/views/collections/CollectionSchemaCells.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx index cdcc67294..0026ab927 100644 --- a/src/client/views/collections/CollectionSchemaCells.tsx +++ b/src/client/views/collections/CollectionSchemaCells.tsx @@ -380,14 +380,17 @@ export class CollectionSchemaDateCell extends CollectionSchemaCell { @action handleChange = (date: any) => { this._date = date; - this.prop.Document[this.prop.fieldKey] = date; + this.prop.Document[this.prop.fieldKey] = DateCast(date); + this._field = DateCast(date); } render() { return this.handleChange(date)} onChange={date => this.handleChange(date)} + showTimeSelect + dateFormat="Pp" />; } } -- cgit v1.2.3-70-g09d2