summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_history_sync.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-26 13:15:53 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-26 13:15:53 +0000
commit957c2e66560b92e345ab6a87922374b9e2886b2c (patch)
tree1076883042f54ffe7fd033c83c784b425d34c8b3 /protocols/SkypeWeb/src/skype_history_sync.cpp
parentaed7583d1b058a421d95d34719ec398bd40bd760 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@13168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_history_sync.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp
index 7b1607a834..1e4f4641fb 100644
--- a/protocols/SkypeWeb/src/skype_history_sync.cpp
+++ b/protocols/SkypeWeb/src/skype_history_sync.cpp
@@ -83,7 +83,12 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response)
mir_strcpy(dbMsgText, (char*)dbei.pBlob);
- msg.AppendFormat("%s\n%s [%s]:\n%s", dbMsgText, Translate("Edited at"), ptrA(mir_t2a(composeTime)), message);
+ TCHAR time[64];
+ _locale_t locale = _create_locale(LC_ALL, "");
+ _tcsftime_l(time, sizeof(time), L"%X %x", localtime(&timestamp), locale);
+ _free_locale(locale);
+
+ msg.AppendFormat("%s\n%s %s:\n%s", dbMsgText, Translate("Edited at"), _T2A(time), message);
db_event_delete(hContact, dbevent);
AddMessageToDb(hContact, dbEventTimestamp, flags, clientMsgId, msg.GetBuffer(), emoteOffset);
}