We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
toJs()
1 parent e665cab commit f802cf4Copy full SHA for f802cf4
lib/properties.js
@@ -304,7 +304,7 @@
304
results = [];
305
for (i = 0, len = value.length; i < len; i++) {
306
x = value[i];
307
- results.push(x != null ? x.toJSON() : null);
+ results.push(x != null ? new Date(x) : null);
308
}
309
return results;
310
})();
src/lib/properties.coffee
@@ -181,7 +181,7 @@ class ListProperty extends Property
181
when BooleanProperty
182
value = ((if x? then Boolean(x) else null) for x in value)
183
when DateProperty
184
- value = ((if x? then x.toJSON() else null) for x in value)
+ value = ((if x? then new Date(x) else null) for x in value)
185
when ListProperty, ObjectProperty, ReferenceProperty
186
value = ((if x? then x else null) for x in value)
187
else
0 commit comments