From 4bd49e3afe2b5bd19b47478ca49bd480f0c34fdb Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 21 Apr 2015 16:52:24 +0000 Subject: SkypeWeb: Edited message time format. git-svn-id: http://svn.miranda-ng.org/main/trunk@13015 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_messages.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src/skype_messages.cpp') 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()); } -- cgit v1.2.3