Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aserver
Project
Project
Details
Activity
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
15所TongWeb
aserver
Commits
35e103e1
Commit
35e103e1
authored
Dec 07, 2020
by
Dyml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日期时间格式化
Signed-off-by:
Dyml
<
d2yml123@163.com
>
parent
39dafc01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
LogService.java
src/main/java/com/archser/aserver/service/LogService.java
+1
-1
No files found.
src/main/java/com/archser/aserver/service/LogService.java
View file @
35e103e1
...
@@ -16,7 +16,7 @@ public class LogService {
...
@@ -16,7 +16,7 @@ public class LogService {
asLog
.
setUserId
(
userId
);
asLog
.
setUserId
(
userId
);
asLog
.
setContent
(
content
);
asLog
.
setContent
(
content
);
// 把时间精确到秒
// 把时间精确到秒
SimpleDateFormat
format2
=
new
SimpleDateFormat
(
"yyyy
MMdd 'T'
HH:mm:ss"
);
SimpleDateFormat
format2
=
new
SimpleDateFormat
(
"yyyy
-MM-dd'T'
HH:mm:ss"
);
Date
date
=
new
Date
();
Date
date
=
new
Date
();
String
time
=
format2
.
format
(
date
);
String
time
=
format2
.
format
(
date
);
Date
date2
=
format2
.
parse
(
time
);
Date
date2
=
format2
.
parse
(
time
);
...
...
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