File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,16 +145,16 @@ export default {
145145 return this .dataFormat === " datetime" ;
146146 },
147147 format () {
148- let format = this .datepicker ? getUserDateTimeFormat () : getUserDateFormat ();
149148 if (this .datepicker ) {
149+ let format = getUserDateTimeFormat ();
150150 // Check if the format already includes time patterns (hh:mm A or HH:mm)
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 (/ [\s Hh:msaAzZ] / g , ' ' ) + ' hh:mm A' ;
154+ format = ` ${ format .replace (/ [\s Hh:msaAzZ] / g , ' ' )} hh:mm A` ;
155155 }
156156 }
157- return format ;
157+ return getUserDateFormat () ;
158158 },
159159 classList () {
160160 return {
You can’t perform that action at this time.
0 commit comments