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
f27375ff
Commit
f27375ff
authored
Jan 07, 2022
by
谢宇轩
😅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取不到系统时区的bug
parent
628e38e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
format.go
entity/format.go
+6
-3
No files found.
entity/format.go
View file @
f27375ff
...
...
@@ -28,7 +28,10 @@ func FormatServiceWfLog(sourceKey string, message string) (Matedata, error) {
mateItem
.
Level
=
message
[
:
levelIndex
]
message
=
message
[
levelIndex
:
]
loc
,
_
:=
time
.
LoadLocation
(
Location
)
loc
,
err
:=
time
.
LoadLocation
(
Location
)
if
err
!=
nil
{
loc
=
time
.
FixedZone
(
"CST"
,
8
*
3600
)
}
logTime
,
_
:=
time
.
ParseInLocation
(
": 06-01-02 15:04:05 "
,
message
[
:
strings
.
Index
(
message
,
"["
)],
loc
)
mateItem
.
create
=
logTime
keyword
:=
serviceWfLogKeyWord
...
...
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