From 1f53559c20f29e73b83cccb334263b4c96abeb70 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Fri, 20 Jan 2017 11:27:11 +0800 Subject: [PATCH] DatePicker: fix toDate, fixed #2538 --- packages/date-picker/src/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/date-picker/src/util/index.js b/packages/date-picker/src/util/index.js index 3d13a48e8..9a19e981f 100644 --- a/packages/date-picker/src/util/index.js +++ b/packages/date-picker/src/util/index.js @@ -13,7 +13,7 @@ export const equalDate = function(dateA, dateB) { }; export const toDate = function(date) { - return isDate(date) ? date : null; + return isDate(date) ? new Date(date) : null; }; export const isDate = function(date) {