From 34d205b40b9adab0f10ad62bf08e6999fe339348 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Jun 2015 14:41:18 +0000 Subject: MS_DB_TIME_* removed from pascal headers too git-svn-id: http://svn.miranda-ng.org/main/trunk@14289 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryPlusPlus/hpp_events.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/HistoryPlusPlus/hpp_events.pas') diff --git a/plugins/HistoryPlusPlus/hpp_events.pas b/plugins/HistoryPlusPlus/hpp_events.pas index 401822797d..848008a37e 100644 --- a/plugins/HistoryPlusPlus/hpp_events.pas +++ b/plugins/HistoryPlusPlus/hpp_events.pas @@ -236,8 +236,7 @@ const // Miranda timestamp to TDateTime function TimestampToDateTime(const Timestamp: DWord): TDateTime; begin - Result := UnixTimeStart + - CallService(MS_DB_TIME_TIMESTAMPTOLOCAL,WPARAM(Timestamp),0) / SecondsPerDay; + Result := UnixTimeStart + TimeZone_ToLocal(Timestamp) / SecondsPerDay; end; // should probably add function param to use -- cgit v1.2.3