Skip to content

Commit f4b84c9

Browse files
Add return
1 parent 401455c commit f4b84c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FormDatePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default {
151151
const hasTimePattern = /[Hh]{1,2}:[mM]{1,2}/.test(format);
152152
if (!hasTimePattern) {
153153
// If forceDateTime is true and no time pattern exists, ensure the format includes hh:mm A
154-
format = `${format.replace(/[\sHh:msaAzZ]/g, '')} hh:mm A`;
154+
return `${format.replace(/[\sHh:msaAzZ]/g, '')} hh:mm A`;
155155
}
156156
}
157157
return getUserDateFormat();

0 commit comments

Comments
 (0)