(fix) don't convert back the birthday date object on non-deep omits

pull/100/merge
Ludovic Marcotte 2015-08-20 15:47:41 -04:00
parent 26e8276b08
commit e5b0596bc9
1 changed files with 6 additions and 4 deletions

View File

@ -493,10 +493,12 @@
});
// We convert back our birthday object
if (card.birthday)
card.birthday = card.birthday.getTime()/1000;
else
card.birthday = 0;
if (!deep) {
if (card.birthday)
card.birthday = card.birthday.getTime()/1000;
else
card.birthday = 0;
}
return card;
};