From 21159adfd8bd3d709793006e1b1e4b2d8ed806d7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Sep 2017 03:25:42 +0300 Subject: Fix send date in mails. --- src/net/eathena/mail2recv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp index 8b4d1dd8b..536425386 100644 --- a/src/net/eathena/mail2recv.cpp +++ b/src/net/eathena/mail2recv.cpp @@ -48,6 +48,7 @@ #include "utils/checkutils.h" #include "utils/gettext.h" #include "utils/stringutils.h" +#include "utils/timer.h" #include "debug.h" @@ -345,7 +346,7 @@ void Mail2Recv::processMailListPage(Net::MessageIn &msg) mail->type = static_cast( msg.readUInt8("type")); mail->sender = msg.readString(24, "sender name"); - mail->time = msg.readInt32("reg time"); + mail->time = cur_time - msg.readInt32("reg time"); mail->strTime = timeToStr(mail->time); mail->expireTime = msg.readInt32("expire time"); mail->title = msg.readString(-1, "title"); -- cgit v1.2.3-70-g09d2