Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
6eacc7f7
Commit
6eacc7f7
authored
Jun 28, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
遥测现场问题解决
parent
7257cfc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+11
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/TopographyController.java
View file @
6eacc7f7
...
@@ -1437,13 +1437,17 @@ public class TopographyController extends AbstractBaseController {
...
@@ -1437,13 +1437,17 @@ public class TopographyController extends AbstractBaseController {
private
Date
dateParse
(
String
value
)
throws
ParseException
{
private
Date
dateParse
(
String
value
)
throws
ParseException
{
String
strDate
=
value
.
substring
(
0
,
19
);
if
(
value
.
length
()
>
19
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
ISO8601_DATE_HOUR_MIN_SEC
);
String
strDate
=
value
.
substring
(
0
,
19
);
SimpleDateFormat
sdf1
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
ISO8601_DATE_HOUR_MIN_SEC
);
sdf
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"UTC"
));
SimpleDateFormat
sdf1
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
);
Date
date
=
sdf
.
parse
(
strDate
);
sdf
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"UTC"
));
String
time
=
DateTimeUtil
.
format
(
date
,
DateTimeUtil
.
ISO_DATE_HOUR24_MIN_SEC
);
Date
date
=
sdf
.
parse
(
strDate
);
return
sdf1
.
parse
(
time
);
String
time
=
DateTimeUtil
.
format
(
date
,
DateTimeUtil
.
ISO_DATE_HOUR24_MIN_SEC
);
return
sdf1
.
parse
(
time
);
}
else
{
return
DateUtils
.
dateParse
(
value
,
DateUtils
.
DATE_TIME_PATTERN
);
}
}
}
/***
/***
...
...
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