Commit 33a9c35b authored by Clement Ho's avatar Clement Ho

Merge branch '55266-fix-incorrect-due-date-parsing' into 'master'

Use `parsePikadayDate` to parse due date string

Closes #55266

See merge request gitlab-org/gitlab-ce!24045
parents ca6fbe8a 86c096e5
......@@ -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 parsePikadayDate(this.date);
},
timeDifference() {
const today = new Date();
......
---
title: Use 'parsePikadayDate' to parse due date string
merge_request: 24045
author:
type: fixed
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