Fix PYSON to test moment object instead of Date instance

This commit is contained in:
C?dric Krier 2015-03-27 15:38:58 +01:00
parent d98c5fdd3a
commit 1e3acff7c0

View file

@ -25,7 +25,7 @@
return JSON.stringify(pyson, function(k, v) {
if (v instanceof Sao.PYSON.PYSON) {
return v.pyson();
} else if (v instanceof Date) {
} else if (v._isAMomentObject) {
if (v.isDate) {
return Sao.PYSON.Date(
v.getFullYear(),