diff --git a/src/sbbs3/scfg/scfgsys.c b/src/sbbs3/scfg/scfgsys.c index 1ed16939fc580bd2c8f4e83049d311f113e98f98..f6699d45a52222d8de8b7a4d9dd3832e8717a4a0 100644 --- a/src/sbbs3/scfg/scfgsys.c +++ b/src/sbbs3/scfg/scfgsys.c @@ -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;