Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hds
flexin
android-app
Commits
d70a6d77
Commit
d70a6d77
authored
Dec 12, 2017
by
Nastuzzi Samy
Browse files
Fix timestamp error
parent
454cbad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/fr/utc/simde/jessy/QRCodeReaderActivity.java
View file @
d70a6d77
...
...
@@ -474,7 +474,10 @@ public class QRCodeReaderActivity extends BaseActivity implements ZXingScannerVi
}
protected
void
checkReservation
(
final
API
api
,
final
ComedmusResponse
comedmusResponse
)
{
if
((
System
.
currentTimeMillis
()
/
1000
)
<
comedmusResponse
.
getCreatedAt
())
{
long
currentTimestamp
=
(
System
.
currentTimeMillis
()
/
1000
);
Log
.
d
(
LOG_TAG
,
"Current time: "
+
currentTimestamp
);
if
(
currentTimestamp
<
comedmusResponse
.
getCreatedAt
())
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -504,7 +507,7 @@ public class QRCodeReaderActivity extends BaseActivity implements ZXingScannerVi
return
;
}
if
(
(
System
.
currentTime
Millis
()
/
1000
)
>
comedmusResponse
.
getExpiresAt
())
{
if
(
currentTime
stamp
>
comedmusResponse
.
getExpiresAt
())
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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