Skip to content

Commit

Permalink
Merge pull request #2094 from nextcloud/backport/2093/stable3
Browse files Browse the repository at this point in the history
[stable3] fix: Parse momentFormat and storageFormat
  • Loading branch information
susnux authored Apr 23, 2024
2 parents 6a4946f + b56dee4 commit 1582a4d
Showing 1 changed file with 1 addition and 1 deletion.
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.momentFormat).toDate()
return moment(dateString, [this.answerType.momentFormat, this.answerType.storageFormat]).toDate()
},

/**
Expand Down

0 comments on commit 1582a4d

Please sign in to comment.