added: a new directory "etc"
there'll be some generic config files for winix
added: a new file in etc directory: time_zones_file
list of time zones (not finished yet -- daylight saving time is needed)
added: option to config: etc_dir
a directory in which there are some config files
used mainly when winix starts
default: empty (means not for using)
added: option to config: time_zones_file
a file in etc_dir with time zones info
default: time_zones.conf
this is a Space structure with all time zones
added: to system: TimeZones struct
list of time zones read from etc/time_zones.conf
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@849 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -22,6 +22,7 @@ TimeZone::TimeZone()
|
||||
|
||||
void TimeZone::Clear()
|
||||
{
|
||||
tz_id = -1;
|
||||
tz_offset = 0;
|
||||
tz_has_dst = false;
|
||||
tz_dst_offset = 0;
|
||||
@@ -122,6 +123,7 @@ bool TimeZone::SetTz(PT::Space & space)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
tz_id = space.Int(L"tz_id", -1);
|
||||
tz_offset = space.Long(L"tz_offset", 0);
|
||||
tz_has_dst = space.Bool(L"tz_has_dst", false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user