diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-26 20:42:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-26 20:42:04 +0300 |
commit | 7178a1cab5b35a8e5bac3e7d367c3d72e72ec7e6 (patch) | |
tree | 07c38891bed8ca3a6f06029cb1b5b5df02cbb99c /protocols/EmLanProto/src/get_time.cpp | |
parent | 4da9b39a6219cecfe5486d392e94648cd84d5f30 (diff) |
EMLanProto:
- plugin converted into Unicode;
- fixes #933 (E-mage LAN - new function - directly IP for companion);
- fixes utf8 autodetect in messages
- version bump
Diffstat (limited to 'protocols/EmLanProto/src/get_time.cpp')
-rw-r--r-- | protocols/EmLanProto/src/get_time.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/protocols/EmLanProto/src/get_time.cpp b/protocols/EmLanProto/src/get_time.cpp index 76ad065fdf..6ffccc5047 100644 --- a/protocols/EmLanProto/src/get_time.cpp +++ b/protocols/EmLanProto/src/get_time.cpp @@ -19,7 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
-
static int daysInMonth[]={31,28,31,30,31,30,31,31,30,31,30,31};
static int IsLeapYear(int year)
{
@@ -42,24 +41,6 @@ static DWORD YMDHMSToTime(int year,int month,int day,int hour,int minute,int sec return ret+3600*hour+60*minute+second;
}
-
-static DWORD TimestampLocalToGMT(DWORD from)
-{
- FILETIME ft1,ft2;
- LARGE_INTEGER liFiletime;
-
- //this huge number is the difference between 1970 and 1601 in seconds
- //liFiletime.QuadPart=(11644473600i64+(__int64)from)*10000000;
- __int64 t = 11644473600;
- liFiletime.QuadPart=(t+(__int64)from)*10000000;
- ft1.dwHighDateTime=liFiletime.HighPart;
- ft1.dwLowDateTime=liFiletime.LowPart;
- LocalFileTimeToFileTime(&ft1,&ft2);
- liFiletime.HighPart=ft2.dwHighDateTime;
- liFiletime.LowPart=ft2.dwLowDateTime;
- return (DWORD)(liFiletime.QuadPart/10000000-t);
-}
-
DWORD get_time()
{
SYSTEMTIME stime;
|