fix: mobile date picker format (#6390)

This commit is contained in:
Katherine 2025-03-09 16:20:48 +08:00 committed by GitHub
parent 79ef798b38
commit 283e2a1a7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ const toMoment = (val: any, options?: Str2momentOptions) => {
}
if (dayjs.isDayjs(val)) {
return val.utcOffset(offsetFromString(offset));
return offset ? val.utcOffset(offsetFromString(offset)) : val;
}
if (gmt) {
return dayjs(val).utcOffset(0);