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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
f817da2d
Commit
f817da2d
authored
Dec 27, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `parsePikadayDate` to parse due date string
parent
35f46357
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/boards/components/issue_due_date.vue
app/assets/javascripts/boards/components/issue_due_date.vue
+7
-2
No files found.
app/assets/javascripts/boards/components/issue_due_date.vue
View file @
f817da2d
...
...
@@ -3,7 +3,12 @@ import dateFormat from 'dateformat';
import
{
GlTooltip
}
from
'
@gitlab/ui
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
getDayDifference
,
getTimeago
,
dateInWords
}
from
'
~/lib/utils/datetime_utility
'
;
import
{
getDayDifference
,
getTimeago
,
dateInWords
,
parsePikadayDate
,
}
from
'
~/lib/utils/datetime_utility
'
;
export
default
{
components
:
{
...
...
@@ -54,7 +59,7 @@ export default {
return
standardDateFormat
;
},
issueDueDate
()
{
return
new
Date
(
this
.
date
);
return
parsePikaday
Date
(
this
.
date
);
},
timeDifference
()
{
const
today
=
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