Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
abc63541
Commit
abc63541
authored
2 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Default Other/non-US timezone to the current configuration selection
parent
302067b1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/scfgsys.c
+32
-2
32 additions, 2 deletions
src/sbbs3/scfg/scfgsys.c
with
32 additions
and
2 deletions
src/sbbs3/scfg/scfgsys.c
+
32
−
2
View file @
abc63541
...
@@ -160,6 +160,7 @@ int edit_sys_timezone(void)
...
@@ -160,6 +160,7 @@ int edit_sys_timezone(void)
{
{
char
str
[
128
];
char
str
[
128
];
int
i
;
int
i
;
int
bar
;
i
=
!
(
cfg
.
sys_timezone
&
US_ZONE
);
i
=
!
(
cfg
.
sys_timezone
&
US_ZONE
);
uifc
.
helpbuf
=
uifc
.
helpbuf
=
...
@@ -260,7 +261,35 @@ int edit_sys_timezone(void)
...
@@ -260,7 +261,35 @@ int edit_sys_timezone(void)
strcpy
(
opt
[
i
++
],
"New Zealand"
);
strcpy
(
opt
[
i
++
],
"New Zealand"
);
strcpy
(
opt
[
i
++
],
"Other..."
);
strcpy
(
opt
[
i
++
],
"Other..."
);
opt
[
i
][
0
]
=
0
;
opt
[
i
][
0
]
=
0
;
i
=
0
;
switch
(
cfg
.
sys_timezone
)
{
case
MID
:
i
=
0
;
break
;
case
VAN
:
i
=
1
;
break
;
case
EDM
:
i
=
2
;
break
;
case
WIN
:
i
=
3
;
break
;
case
BOG
:
i
=
4
;
break
;
case
CAR
:
i
=
5
;
break
;
case
RIO
:
i
=
6
;
break
;
case
FER
:
i
=
7
;
break
;
case
AZO
:
i
=
8
;
break
;
case
WET
:
i
=
9
;
break
;
case
CET
:
i
=
10
;
break
;
case
EET
:
i
=
11
;
break
;
case
MOS
:
i
=
12
;
break
;
case
DUB
:
i
=
13
;
break
;
case
KAB
:
i
=
14
;
break
;
case
KAR
:
i
=
15
;
break
;
case
BOM
:
i
=
16
;
break
;
case
KAT
:
i
=
17
;
break
;
case
DHA
:
i
=
18
;
break
;
case
BAN
:
i
=
19
;
break
;
case
HON
:
i
=
20
;
break
;
case
TOK
:
i
=
21
;
break
;
case
ACST
:
i
=
22
;
break
;
case
AEST
:
i
=
23
;
break
;
case
NOU
:
i
=
24
;
break
;
case
NZST
:
i
=
25
;
break
;
default:
i
=
26
;
break
;
}
uifc
.
helpbuf
=
uifc
.
helpbuf
=
"`Non-U.S. Time Zone:`
\n
"
"`Non-U.S. Time Zone:`
\n
"
"
\n
"
"
\n
"
...
@@ -269,7 +298,8 @@ int edit_sys_timezone(void)
...
@@ -269,7 +298,8 @@ int edit_sys_timezone(void)
"Choose `Other...` if a region representing your local time zone is
\n
"
"Choose `Other...` if a region representing your local time zone is
\n
"
"not listed (you will be able to set the UTC offset manually)."
"not listed (you will be able to set the UTC offset manually)."
;
;
i
=
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
0
bar
=
i
;
i
=
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
&
bar
,
"None-U.S. Time Zone"
,
opt
);
,
"None-U.S. Time Zone"
,
opt
);
if
(
i
==-
1
)
if
(
i
==-
1
)
return
-
1
;
return
-
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment