Skip to content
Snippets Groups Projects
Commit d62a17df authored by rswindell's avatar rswindell
Browse files

Added support for automatic toggle of daylight savings time bit in system

timezone value (for display purposes only).
parent 65fe8f0d
No related branches found
No related tags found
No related merge requests found
......@@ -254,6 +254,8 @@ be able to logon as New, leave this option blank.
,cfg.sys_misc&SM_LISTLOC ? "Yes" : "No");
sprintf(opt[i++],"%-33.33s%s","Use Local/System Time Zone"
,cfg.sys_misc&SM_LOCAL_TZ ? "Yes" : "No");
sprintf(opt[i++],"%-33.33s%s","Automatic Daylight Savings Time"
,cfg.sys_misc&SM_AUTO_DST ? "Yes" : "No");
sprintf(opt[i++],"%-33.33s%s","Military (24 hour) Time Format"
,cfg.sys_misc&SM_MILITARY ? "Yes" : "No");
sprintf(opt[i++],"%-33.33s%s","European Date Format (DD/MM/YY)"
......@@ -522,6 +524,32 @@ set to No, then all times will be stored in local representation.
break;
case 11:
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
i=cfg.sys_misc&SM_AUTO_DST ? 0:1;
SETHELP(WHERE);
/*
`Automatic Daylight Savings Time:`
If your system is using a U.S. standard timezone, and you would like
to have the daylight savings time `flag` automatically toggled for you,
set this option to ~Yes~. This `flag` is used for display purposes only
(e.g. to display "PDT" instead of "PST"), it doesn't actually change the
time on your system(s) for you.
*/
i=uifc.list(WIN_MID|WIN_SAV,0,0,0,&i,0
,"Automatically Toggle Daylight Savings Time Flag",opt);
if(!i && !(cfg.sys_misc&SM_AUTO_DST)) {
cfg.sys_misc|=SM_AUTO_DST;
uifc.changes=1;
}
else if(i==1 && cfg.sys_misc&SM_AUTO_DST) {
cfg.sys_misc&=~SM_AUTO_DST;
uifc.changes=1;
}
break;
case 12:
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
i=cfg.sys_misc&SM_MILITARY ? 0:1;
......@@ -541,7 +569,7 @@ format always, set this option to Yes.
cfg.sys_misc&=~SM_MILITARY;
uifc.changes=1; }
break;
case 12:
case 13:
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
......@@ -562,7 +590,7 @@ instead of MM/DD/YY format, set this option to Yes.
cfg.sys_misc&=~SM_EURODATE;
uifc.changes=1; }
break;
case 13:
case 14:
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
......@@ -583,7 +611,7 @@ time online, then set this option to Yes.
cfg.sys_misc&=~SM_TIME_EXP;
uifc.changes=1; }
break;
case 14:
case 15:
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
......@@ -604,7 +632,7 @@ to Yes.
cfg.sys_misc|=SM_NOSYSINFO;
uifc.changes=1; }
break;
case 15:
case 16:
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment