From 8cabf8af42bfd0384742ec3a22fde4fa3992a2a4 Mon Sep 17 00:00:00 2001
From: Sergey Bolhovskoy <elzorfox@ya.ru>
Date: Fri, 9 Jan 2015 11:04:14 +0000
Subject: VKontakte: minot fix for out 'message read' string

git-svn-id: http://svn.miranda-ng.org/main/trunk@11802 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 protocols/VKontakte/src/misc.cpp | 4 +++-
 protocols/VKontakte/src/stdafx.h | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

(limited to 'protocols')

diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 617da0c5eb..833dbebceb 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -609,7 +609,9 @@ void CVkProto::SetSrmmReadStatus(MCONTACT hContact)
 		return;
 
 	TCHAR ttime[64];
-	_tcsftime(ttime, SIZEOF(ttime), _T("%X"), localtime(&time));
+	_locale_t locale = _create_locale(LC_ALL, "");
+	_tcsftime_l(ttime, SIZEOF(ttime), _T("%X - %x"), localtime(&time), locale);
+	_free_locale(locale);
 
 	StatusTextData st = { 0 };
 	st.cbSize = sizeof(st);
diff --git a/protocols/VKontakte/src/stdafx.h b/protocols/VKontakte/src/stdafx.h
index 7d6457ecaa..ab9e082dad 100644
--- a/protocols/VKontakte/src/stdafx.h
+++ b/protocols/VKontakte/src/stdafx.h
@@ -29,6 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
 #include <malloc.h>
 #include <tchar.h>
 #include <time.h>
+#include <locale.h>
 
 #include <newpluginapi.h>
 #include <m_system.h>
-- 
cgit v1.2.3