Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mycard Mobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mycard Mobile
Commits
a1bbd10c
Commit
a1bbd10c
authored
Jul 26, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复匹配时间显示的半时区问题
parent
d4f06b95
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
package.json
package.json
+1
-1
src/app/match/match.component.ts
src/app/match/match.component.ts
+3
-3
No files found.
package.json
View file @
a1bbd10c
{
{
"name"
:
"mycard-mobile"
,
"name"
:
"mycard-mobile"
,
"version"
:
"1.0.1
4
"
,
"version"
:
"1.0.1
5
"
,
"license"
:
"UNLISENCED"
,
"license"
:
"UNLISENCED"
,
"scripts"
:
{
"scripts"
:
{
"ng"
:
"ng"
,
"ng"
:
"ng"
,
...
...
src/app/match/match.component.ts
View file @
a1bbd10c
...
@@ -4,9 +4,9 @@ import { MD_DIALOG_DATA, MdDialogRef } from '@angular/material';
...
@@ -4,9 +4,9 @@ import { MD_DIALOG_DATA, MdDialogRef } from '@angular/material';
import
{
Observable
}
from
'
rxjs/Observable
'
;
import
{
Observable
}
from
'
rxjs/Observable
'
;
import
{
Subscription
}
from
'
rxjs/Subscription
'
;
import
{
Subscription
}
from
'
rxjs/Subscription
'
;
import
{
LoginService
}
from
'
../login.service
'
;
import
{
LoginService
}
from
'
../login.service
'
;
import
{
YGOProService
}
from
'
../ygopro.service
'
;
const
second
=
1000
;
const
second
=
1000
;
const
offset
=
new
Date
().
getTimezoneOffset
()
*
60
*
second
;
@
Component
({
@
Component
({
selector
:
'
app-match
'
,
selector
:
'
app-match
'
,
...
@@ -15,8 +15,8 @@ const second = 1000;
...
@@ -15,8 +15,8 @@ const second = 1000;
})
})
export
class
MatchDialog
implements
OnInit
,
OnDestroy
{
export
class
MatchDialog
implements
OnInit
,
OnDestroy
{
expect_wait
=
this
.
http
.
get
(
'
https://api.mycard.moe/ygopro/match/stats/
'
+
this
.
arena
).
map
(
response
=>
response
.
json
()
*
second
);
expect_wait
=
this
.
http
.
get
(
'
https://api.mycard.moe/ygopro/match/stats/
'
+
this
.
arena
).
map
(
response
=>
response
.
json
()
*
second
+
offset
);
actual_wait
=
Observable
.
timer
(
0
,
second
).
map
(
timestamp
=>
timestamp
*
second
);
actual_wait
=
Observable
.
timer
(
0
,
second
).
map
(
timestamp
=>
timestamp
*
second
+
offset
);
matching
:
Subscription
;
matching
:
Subscription
;
...
...
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