Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
logtransfer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢宇轩
logtransfer
Commits
50009052
Commit
50009052
authored
Feb 15, 2023
by
李世星
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(优化时区问题): 202302151643
parent
ad446204
Pipeline
#16350
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
main.go
main.go
+5
-0
No files found.
main.go
View file @
50009052
...
@@ -6,6 +6,7 @@ import (
...
@@ -6,6 +6,7 @@ import (
"io"
"io"
"log"
"log"
"os"
"os"
"time"
"github.com/y7ut/logtransfer/transfer"
"github.com/y7ut/logtransfer/transfer"
)
)
...
@@ -34,5 +35,9 @@ func main() {
...
@@ -34,5 +35,9 @@ func main() {
log
.
Default
()
.
SetFlags
(
log
.
LstdFlags
)
log
.
Default
()
.
SetFlags
(
log
.
LstdFlags
)
log
.
Default
()
.
SetOutput
(
io
.
MultiWriter
(
writerLog
,
os
.
Stderr
))
log
.
Default
()
.
SetOutput
(
io
.
MultiWriter
(
writerLog
,
os
.
Stderr
))
//设置时间东八区
cstZone
:=
time
.
FixedZone
(
"CST"
,
8
*
3600
)
time
.
Local
=
cstZone
transfer
.
Run
(
*
c
)
transfer
.
Run
(
*
c
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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