uview-plus icon indicating copy to clipboard operation
uview-plus copied to clipboard

timeFormat格式化时间错误

Open xiashui1994 opened this issue 1 year ago • 1 comments

image

uni.$u.timeFormat('2024-12-18T02:25:31.432Z', 'yyyy年mm月dd日')

结果应该为2024年12月18日

xiashui1994 avatar Dec 19 '24 10:12 xiashui1994

不支持这种utc格式的,要自己手动处理一下,或者在函数内部统一处理

2535688890 avatar Mar 03 '25 12:03 2535688890

增加UTC支持@3.4.76

ijry avatar Aug 07 '25 16:08 ijry