diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-04-04 23:41:11 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-04-04 23:41:11 +0000 |
commit | 0c2db8f67782848603cdd845713ca70e285c0f49 (patch) | |
tree | 9ee0652d8c23593b567b91cd5e34c13c62d61611 /worldtime_protocol/timezone.h | |
parent | d11bac94bbcbd92bf550ccca094a10bb50e6df4b (diff) |
Fixed incorrect time after time zone table changes
Reduced size plugin size
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@487 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'worldtime_protocol/timezone.h')
-rw-r--r-- | worldtime_protocol/timezone.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/worldtime_protocol/timezone.h b/worldtime_protocol/timezone.h index ddb9a52..ba0f878 100644 --- a/worldtime_protocol/timezone.h +++ b/worldtime_protocol/timezone.h @@ -6,13 +6,12 @@ //#define TZREG2 "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation"
#define MAX_SIZE 512
-#include <vector>
-#include <algorithm>
+#include "common.h"
struct REG_TZI {
- DWORD Bias;
- DWORD StandardBias;
- DWORD DaylightBias;
+ LONG Bias;
+ LONG StandardBias;
+ LONG DaylightBias;
SYSTEMTIME StandardDate;
SYSTEMTIME DaylightDate;
};
@@ -31,10 +30,10 @@ struct LS_TZREG { unsigned int list_index;
- bool operator<(const LS_TZREG &other);
+ static int compare(const LS_TZREG *p1, const LS_TZREG *p2);
};
-typedef std::vector< LS_TZREG > TimeList;
+typedef OBJLIST< LS_TZREG > TimeList;
extern TimeList timezone_list, geo_timezone_list;
bool build_timezone_list();
|