summaryrefslogtreecommitdiff
path: root/protocols/ICQCorp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQCorp')
-rw-r--r--protocols/ICQCorp/src/corp.h1
-rw-r--r--protocols/ICQCorp/src/protocol.cpp4
-rw-r--r--protocols/ICQCorp/src/transfer.cpp2
3 files changed, 4 insertions, 3 deletions
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 <statusmodes.h>
#include <m_clist.h>
#include <m_userinfo.h>
+#include <m_timezones.h>
#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)
{