diff options
author | Alexey Kulakov <panda75@bk.ru> | 2015-01-28 07:02:20 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2015-01-28 07:02:20 +0000 |
commit | 5f60fac793b226c0936466170ce1ee8f85ce33ab (patch) | |
tree | e5a9411b0cf4e4e407d607a64582a99dacbd3ca7 | |
parent | 0bc017159442fed3020f64da88adbb3d9ab2a03b (diff) |
Watrack: lastfm timestamp fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Utils.pas/mircontacts.pas | 4 | ||||
-rw-r--r-- | plugins/Watrack/lastfm/i_last_api.inc | 4 | ||||
-rw-r--r-- | plugins/Watrack/lastfm/lastfm.pas | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Utils.pas/mircontacts.pas b/plugins/Utils.pas/mircontacts.pas index ed570ead7f..a0b971e008 100644 --- a/plugins/Utils.pas/mircontacts.pas +++ b/plugins/Utils.pas/mircontacts.pas @@ -58,7 +58,7 @@ implementation uses
messages,
- common, syswin,
+ common, syswin, datetime,
dbsettings;
//----- Contact info -----
@@ -516,7 +516,7 @@ begin gce.bIsMe :=true;
gce.szText.w:=pszText;
gce.dwFlags :=GCEF_ADDTOLOG;
- gce.time :=GetCurrentTime;
+ gce.time :=GetCurrentTimeStamp;
CallServiceSync(MS_GC_EVENT,0,lparam(@gce));
end;
diff --git a/plugins/Watrack/lastfm/i_last_api.inc b/plugins/Watrack/lastfm/i_last_api.inc index f43aac30db..e67b8854af 100644 --- a/plugins/Watrack/lastfm/i_last_api.inc +++ b/plugins/Watrack/lastfm/i_last_api.inc @@ -53,7 +53,7 @@ begin GetMD5Str(GetMD5(password,StrLen(password),digest),buf);
mir_md5_init(@stat);
mir_md5_append(@stat,@buf,32);
- IntToStr(timestamp,GetCurrentTime);
+ IntToStr(timestamp,GetCurrentTimestamp);
mir_md5_append(@stat,@timestamp,StrLen(timestamp));
mir_md5_finish(@stat,digest);
GetMD5Str(digest,buf);
@@ -155,7 +155,7 @@ begin if session_id<>nil then
begin
si:=pointer(CallService(MS_WAT_RETURNGLOBAL,WAT_INF_UTF8,0));
- IntToStr(timestamp,GetCurrentTime);
+ IntToStr(timestamp,GetCurrentTimestamp);
pc:=@args;
pc:=StrCopyE(pc,'s=' ); pc:=StrCopyE(pc,session_id);
diff --git a/plugins/Watrack/lastfm/lastfm.pas b/plugins/Watrack/lastfm/lastfm.pas index ee552cc00e..0d47afebb4 100644 --- a/plugins/Watrack/lastfm/lastfm.pas +++ b/plugins/Watrack/lastfm/lastfm.pas @@ -6,7 +6,7 @@ implementation uses windows, messages, commctrl,
common,
- m_api,dbsettings,wrapper,mirutils,
+ m_api,dbsettings,wrapper,mirutils, datetime,
wat_api,global;
const
|