We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fbba7 commit 857598bCopy full SHA for 857598b
src/public.js
@@ -260,10 +260,10 @@ Grid.defaults = {
260
datetime: {
261
// convert datetime type fields from unix timestamp to readable format
262
from: function (value) {
263
- return moment(parseInt(value)*1000);
+ return value ? moment(parseInt(value)*1000) : "";
264
},
265
to: function (value) {
266
- return value.format("lll");
+ return value ? value.format("lll") : "";
267
}
268
269
memsize: {
0 commit comments