Commit f817da2d authored by Kushal Pandya's avatar Kushal Pandya

Use `parsePikadayDate` to parse due date string

parent 35f46357
...@@ -3,7 +3,12 @@ import dateFormat from 'dateformat'; ...@@ -3,7 +3,12 @@ import dateFormat from 'dateformat';
import { GlTooltip } from '@gitlab/ui'; import { GlTooltip } from '@gitlab/ui';
import Icon from '~/vue_shared/components/icon.vue'; import Icon from '~/vue_shared/components/icon.vue';
import { __ } from '~/locale'; import { __ } from '~/locale';
import { getDayDifference, getTimeago, dateInWords } from '~/lib/utils/datetime_utility'; import {
getDayDifference,
getTimeago,
dateInWords,
parsePikadayDate,
} from '~/lib/utils/datetime_utility';
export default { export default {
components: { components: {
...@@ -54,7 +59,7 @@ export default { ...@@ -54,7 +59,7 @@ export default {
return standardDateFormat; return standardDateFormat;
}, },
issueDueDate() { issueDueDate() {
return new Date(this.date); return parsePikadayDate(this.date);
}, },
timeDifference() { timeDifference() {
const today = new Date(); const today = new Date();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment