Commit 1f53559c authored by qingwei.li's avatar qingwei.li Committed by 杨奕

DatePicker: fix toDate, fixed #2538

parent ed299e90
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment