summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_history_sync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_history_sync.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp
index df5d4044a7..ed75061658 100644
--- a/protocols/SkypeWeb/src/skype_history_sync.cpp
+++ b/protocols/SkypeWeb/src/skype_history_sync.cpp
@@ -125,7 +125,13 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response)
if (iType == 1)
text.Append(Translate("Call started"));
else if (iType == 0)
- text.AppendFormat("%s\n%s: %d", Translate("Call ended"), Translate("Duration"), iDuration != NULL ? iDuration : 0);
+ {
+ int hours=0, mins=0, sec=0;
+ hours = iDuration != NULL ? iDuration / 3600 : 0;
+ mins = iDuration != NULL ? iDuration / 60 : 0;
+ sec = iDuration != NULL ? iDuration % 60 : 0;
+ text.AppendFormat("%s\n%s: %d:%d:%d", Translate("Call ended"), Translate("Duration"), hours, mins, sec);
+ }
AddMessageToDb(hContact, timestamp, flags, clientMsgId, text.GetBuffer());
}
}