From bf37d6655a27cc3ea5af5412c9717596c9d1c30f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 18:18:13 +0000 Subject: timezone api migrated to mir_core git-svn-id: http://svn.miranda-ng.org/main/trunk@14266 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/ICQCorp/src/corp.h | 1 + protocols/ICQCorp/src/protocol.cpp | 4 ++-- protocols/ICQCorp/src/transfer.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'protocols/ICQCorp/src') diff --git a/protocols/ICQCorp/src/corp.h b/protocols/ICQCorp/src/corp.h index c703ee04ea..999ccaed64 100644 --- a/protocols/ICQCorp/src/corp.h +++ b/protocols/ICQCorp/src/corp.h @@ -39,6 +39,7 @@ #include #include #include +#include #include "user.h" #include "transfer.h" diff --git a/protocols/ICQCorp/src/protocol.cpp b/protocols/ICQCorp/src/protocol.cpp index 8a4967f5f1..76350c4f18 100644 --- a/protocols/ICQCorp/src/protocol.cpp +++ b/protocols/ICQCorp/src/protocol.cpp @@ -719,7 +719,7 @@ unsigned short ICQ::processUdpPacket(Packet &packet) >> newCommand; timeStampLastMessage = timedataStamp; - timedataStamp = CallService(MS_DB_TIME_TIMESTAMPTOLOCAL, timedataStamp, 0); + timedataStamp = TimeZone_ToLocal(timedataStamp); processSystemMessage(packet, checkUin, newCommand, timedataStamp); break; @@ -806,7 +806,7 @@ unsigned short ICQ::processUdpPacket(Packet &packet) >> newCommand; db_set_dw(NULL, protoName, "LastBroadcastTime", timedataStamp); - timedataStamp = CallService(MS_DB_TIME_TIMESTAMPTOLOCAL, timedataStamp, 0); + timedataStamp = TimeZone_ToLocal(timedataStamp); processSystemMessage(packet, checkUin, newCommand, timedataStamp); break; diff --git a/protocols/ICQCorp/src/transfer.cpp b/protocols/ICQCorp/src/transfer.cpp index c864c6b3e9..32058cc1f9 100644 --- a/protocols/ICQCorp/src/transfer.cpp +++ b/protocols/ICQCorp/src/transfer.cpp @@ -326,7 +326,7 @@ void ICQTransfer::ack(unsigned int result) fts.szCurrentFile = fileName; fts.currentFileSize = fileSize; fts.currentFileProgress = fileProgress; - fts.currentFileTime = CallService(MS_DB_TIME_TIMESTAMPTOLOCAL, fileDate, 0); + fts.currentFileTime = TimeZone_ToLocal(fileDate); /* switch (session->status) { -- cgit v1.2.3