Skip to content

Commit 370899f

Browse files
authored
Merge pull request #2121 from nextcloud/backport/2093/stable4
[stable4] fix: Parse momentFormat and storageFormat
2 parents fe99454 + a609662 commit 370899f

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)