mirror of
https://github.com/NaN-tic/sao-base.git
synced 2023-12-14 03:13:01 +01:00
Fix PYSON to test moment object instead of Date instance
This commit is contained in:
parent
d98c5fdd3a
commit
1e3acff7c0
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue