Skip to content

Commit

Permalink
(fix) don't convert back the birthday date object on non-deep omits
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Aug 20, 2015
1 parent 26e8276 commit e5b0596
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions UI/WebServerResources/js/Contacts/Card.service.js
Expand Up @@ -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;
};
Expand Down

0 comments on commit e5b0596

Please sign in to comment.