changed: in Request:

removed start_tm
         added start_date (PT::Date)
changed: in Session:
         removed: tm_time
         added: start_date (PT::Date)
         renamed: time -> start_time
         the same is for last_time
         now we have (last_time and last_date)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@838 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-05-24 21:09:37 +00:00
parent db9d381a43
commit 5b845f1d03
11 changed files with 153 additions and 104 deletions

View File

@@ -13,6 +13,7 @@
#include <string>
#include <vector>
#include "space/space.h"
#include "date/date.h"
#define WINIX_ACCOUNT_MAX_LOGIN_SIZE 250
@@ -93,6 +94,21 @@ struct User
// time zone
// values here are the same as those in env space
// we provide they here to speed up the process of calculating times
// time zone offset
time_t tz_offset;
// true if the time zone has daylight saving time
bool tz_has_dst;
// time zone daylight saving time (used if tz_has_dst is true)
// the 'year' field is ignored
PT::Date tz_dst_start, tz_dst_end;
User()
{
@@ -112,6 +128,10 @@ struct User
env.Clear();
aenv.Clear();
status = WINIX_ACCOUNT_BLOCKED;
tz_offset = 0;
tz_has_dst = false;
tz_dst_start.Clear();
tz_dst_end.Clear();
}
@@ -126,6 +146,16 @@ struct User
return false;
}
// lepsza nazwe dac
void SetTz()
{
tz_offset = env.Long(L"tz_offset");
}
};