summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-21 16:52:24 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-21 16:52:24 +0000
commit4bd49e3afe2b5bd19b47478ca49bd480f0c34fdb (patch)
treecba04caddb1e360c329b16f3f4639997564ef37a /protocols
parentb6fa2ca2f9b620ebb742456529d9d21f39a05a29 (diff)
SkypeWeb: Edited message time format.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13015 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp7
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(&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, DBEF_UTF, skypeEditedId, msg.GetBuffer());
}