Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
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
abook_android
abook_check
Commits
c43e2abe
Commit
c43e2abe
authored
Jul 30, 2020
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
THETA S端末の時間初期化問題で、Android端末の現在時間は常に設定
parent
a180cb68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ABVJE_UI_Android/src/com/theta/network/HttpConnector.java
+13
-0
No files found.
ABVJE_UI_Android/src/com/theta/network/HttpConnector.java
View file @
c43e2abe
...
@@ -22,8 +22,11 @@ import java.math.RoundingMode;
...
@@ -22,8 +22,11 @@ import java.math.RoundingMode;
import
java.net.HttpURLConnection
;
import
java.net.HttpURLConnection
;
import
java.net.MalformedURLException
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
import
java.net.URL
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.TimeZone
;
import
java.util.Timer
;
import
java.util.Timer
;
import
java.util.TimerTask
;
import
java.util.TimerTask
;
...
@@ -1111,6 +1114,8 @@ public class HttpConnector {
...
@@ -1111,6 +1114,8 @@ public class HttpConnector {
//API2.0
//API2.0
if
(
mSessionId
!=
null
)
{
if
(
mSessionId
!=
null
)
{
parameters
.
put
(
"sessionId"
,
mSessionId
);
parameters
.
put
(
"sessionId"
,
mSessionId
);
//THETA S端末の時間初期化問題で、現在時間は常に設定
options
.
put
(
"dateTimeZone"
,
currentDateTimeZone
());
}
}
parameters
.
put
(
"options"
,
options
);
parameters
.
put
(
"options"
,
options
);
...
@@ -1521,4 +1526,12 @@ public class HttpConnector {
...
@@ -1521,4 +1526,12 @@ public class HttpConnector {
return
isSuccess
;
return
isSuccess
;
}
}
/**
* yyyy:MM:dd HH:mm:ssXXXフォマットで現在の日付を返す。
* @return 現在の日付
*/
private
String
currentDateTimeZone
()
{
return
new
SimpleDateFormat
(
"yyyy:MM:dd HH:mm:ssXXX"
).
format
(
new
Date
());
}
}
}
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