mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: mobile date picker format (#6390)
This commit is contained in:
parent
79ef798b38
commit
283e2a1a7e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user