Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9dc32196
Commit
9dc32196
authored
Mar 14, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `parsePikadayDate` to parse start and end dates
parent
47686b32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ee/app/assets/javascripts/roadmap/store/roadmap_store.js
ee/app/assets/javascripts/roadmap/store/roadmap_store.js
+3
-2
No files found.
ee/app/assets/javascripts/roadmap/store/roadmap_store.js
View file @
9dc32196
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
{
parsePikadayDate
}
from
'
~/lib/utils/datefix
'
;
export
default
class
RoadmapStore
{
constructor
(
groupId
,
timeframe
)
{
...
...
@@ -43,7 +44,7 @@ export default class RoadmapStore {
if
(
rawEpic
.
start_date
)
{
// If startDate is present
const
startDate
=
new
Date
(
rawEpic
.
start_date
);
const
startDate
=
parsePikaday
Date
(
rawEpic
.
start_date
);
if
(
startDate
<=
firstTimeframeItem
)
{
// If startDate is less than first timeframe item
...
...
@@ -69,7 +70,7 @@ export default class RoadmapStore {
// This entire chunk can be moved into generic method
// but we're keeping it here for the sake of simplicity.
if
(
rawEpic
.
end_date
)
{
const
endDate
=
new
Date
(
rawEpic
.
end_date
);
const
endDate
=
parsePikaday
Date
(
rawEpic
.
end_date
);
if
(
endDate
>=
lastTimeframeItem
)
{
epicItem
.
endDateOutOfRange
=
true
;
epicItem
.
originalEndDate
=
endDate
;
...
...
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