Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Weixin Deng
rpc-incast
Commits
ebcfb520
Commit
ebcfb520
authored
May 24, 2022
by
Weixin Deng
Browse files
Add time zone
parent
eabe38d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/service.go
View file @
ebcfb520
...
...
@@ -18,6 +18,12 @@ func Assert(assert bool, msg ...any) {
}
}
func
setTimeZone
()
{
loc
,
err
:=
time
.
LoadLocation
(
"US/Pacific"
)
Assert
(
err
==
nil
,
err
)
time
.
Local
=
loc
}
type
Args
struct
{
startServer
bool
startClient
bool
...
...
@@ -235,6 +241,7 @@ func startServer(args *Args) {
}
func
main
()
{
setTimeZone
()
args
:=
parseArgs
()
if
args
.
startClient
{
params
:=
make
(
map
[
string
]
any
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment