Skip to content

Commit

Permalink
Merge pull request #1974 from nextcloud/backport/1969/stable3
Browse files Browse the repository at this point in the history
[stable3] fix: Update moment format for date parsing
  • Loading branch information
susnux authored Feb 18, 2024
2 parents bde34ab + 6ed3eee commit 6f35f0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Questions/QuestionDate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default {
* @return {Date}
*/
parse(dateString) {
return moment(dateString, this.answerType.storageFormat).toDate()
return moment(dateString, this.answerType.momentFormat).toDate()
},

/**
Expand Down
2 changes: 1 addition & 1 deletion src/models/AnswerTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default {

pickerType: 'date',
storageFormat: 'YYYY-MM-DD',
momentFormat: 'LL',
momentFormat: 'L',
},

datetime: {
Expand Down

0 comments on commit 6f35f0d

Please sign in to comment.