Commit 6dd992fe authored by nanahira's avatar nanahira

fix

parent a463528c
...@@ -143,6 +143,9 @@ export const DateColumn = ( ...@@ -143,6 +143,9 @@ export const DateColumn = (
if (v.value == null) return v.value; if (v.value == null) return v.value;
if (v.value instanceof Date) return v.value; if (v.value instanceof Date) return v.value;
if (typeof v.value === 'number') return new Date(v.value * 1000); if (typeof v.value === 'number') return new Date(v.value * 1000);
if (typeof v.value === 'string' && v.value.match(/^\d+$/)) {
return new Date(parseInt(v.value, 10) * 1000);
}
return new Date(v.value); return new Date(v.value);
}, },
{ {
......
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