Skip to content

Commit 1582a4d

Browse files
authored
Merge pull request #2094 from nextcloud/backport/2093/stable3
[stable3] fix: Parse momentFormat and storageFormat
2 parents 6a4946f + b56dee4 commit 1582a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Questions/QuestionDate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default {
109109
* @return {Date}
110110
*/
111111
parse(dateString) {
112-
return moment(dateString, this.answerType.momentFormat).toDate()
112+
return moment(dateString, [this.answerType.momentFormat, this.answerType.storageFormat]).toDate()
113113
},
114114
115115
/**

0 commit comments

Comments
 (0)