diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-21 16:52:24 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-21 16:52:24 +0000 |
commit | 4bd49e3afe2b5bd19b47478ca49bd480f0c34fdb (patch) | |
tree | cba04caddb1e360c329b16f3f4639997564ef37a | |
parent | b6fa2ca2f9b620ebb742456529d9d21f39a05a29 (diff) |
SkypeWeb: Edited message time format.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13015 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 3869faf19c..97e87753b3 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -253,7 +253,12 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node) ptrA dbMsgText((char *)mir_alloc(dbei.cbBlob));
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(×tamp), 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, DBEF_UTF, skypeEditedId, msg.GetBuffer());
}
|