Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odakyuToiletSignage
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kddi
odakyuToiletSignage
Commits
76d56c4a
Commit
76d56c4a
authored
Feb 01, 2018
by
leej
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dateFormat修正(MMDDHHmmyyyy.ss →MMddHHmmyyyy.ss)
parent
6cf98100
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/src/main/java/jp/odakyu/toiletsignage/task/UpdateToiletInfoTask.java
+1
-1
app/src/main/java/jp/odakyu/toiletsignage/util/DateTimeFormat.java
+2
-2
No files found.
app/src/main/java/jp/odakyu/toiletsignage/task/UpdateToiletInfoTask.java
View file @
76d56c4a
...
...
@@ -112,7 +112,7 @@ public class UpdateToiletInfoTask extends TimerTask {
JSONObject
jsonObject
=
new
JSONObject
(
jsonString
);
Long
ntpTimeMillis
=
(
long
)
((
Double
)
jsonObject
.
get
(
"st"
)
*
1000
);
String
cmd
=
"date "
+
DateTimeUtil
.
toString
(
new
Timestamp
(
ntpTimeMillis
),
DateTimeFormat
.
MM
DD
HHmmyyyyss__colon
);
String
cmd
=
"date "
+
DateTimeUtil
.
toString
(
new
Timestamp
(
ntpTimeMillis
),
DateTimeFormat
.
MM
dd
HHmmyyyyss__colon
);
Logger
.
d
(
TAG
,
"Current Date : "
+
DateTimeUtil
.
toString
(
DateTimeUtil
.
getCurrentDate
(),
DateTimeFormat
.
yyyyMMddHHmmss_slash
));
Logger
.
d
(
TAG
,
"Command=%s, NtpDate=%s"
,
cmd
,
DateTimeUtil
.
toString
(
new
Timestamp
(
ntpTimeMillis
),
DateTimeFormat
.
yyyyMMddHHmmss_slash
));
...
...
app/src/main/java/jp/odakyu/toiletsignage/util/DateTimeFormat.java
View file @
76d56c4a
...
...
@@ -265,8 +265,8 @@ public class DateTimeFormat {
*/
public
static
final
String
HHmmssSSS_colon
=
"HH:mm:ss.SSS"
;
/**
* 時間を示します。"MM
DD
HHmmyyyy.ss"
* 時間を示します。"MM
dd
HHmmyyyy.ss"
* @since 1.0.0
*/
public
static
final
String
MM
DDHHmmyyyyss__colon
=
"MMDD
HHmmyyyy.ss"
;
public
static
final
String
MM
ddHHmmyyyyss__colon
=
"MMdd
HHmmyyyy.ss"
;
}
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