diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-03-20 17:15:42 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-03-20 17:15:42 +0300 |
| commit | b07063023ffb6bac667bb865e4d30212b88ff8e2 (patch) | |
| tree | 3ab8ee290d8cdfe25f1ef0c5bc6f1127367a3be0 /protocols/SkypeWeb/src/skype_profile.cpp | |
| parent | 0be93f29ef172bc008e4b5787f3d01a39c06dad9 (diff) | |
core helper for setting birthday & age
Diffstat (limited to 'protocols/SkypeWeb/src/skype_profile.cpp')
| -rw-r--r-- | protocols/SkypeWeb/src/skype_profile.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_profile.cpp b/protocols/SkypeWeb/src/skype_profile.cpp index f6ca94ef30..5bfcd49513 100644 --- a/protocols/SkypeWeb/src/skype_profile.cpp +++ b/protocols/SkypeWeb/src/skype_profile.cpp @@ -50,9 +50,8 @@ void CSkypeProto::UpdateProfileBirthday(const JSONNode &root, MCONTACT hContact) if (!birthday.IsEmpty() && birthday != "null") {
int d, m, y;
if (3 == swscanf(birthday.GetBuffer(), L"%d-%d-%d", &y, &m, &d)) {
- setWord(hContact, "BirthYear", y);
- setByte(hContact, "BirthDay", d);
- setByte(hContact, "BirthMonth", m);
+ Contact::SetBirthday(hContact, d, m, y);
+ return;
}
}
|
