#3239·dayjs

customParseFormat: 在使用 dayjs.utc() 进行解析时,会默默忽略周 token ('w'/'ww')。

作者: AliGaffarToksoy创建于 2026年9月27日更新于 2026年9月27日

描述错误

使用 dayjs.utc(input, format) 和 customParseFormat 插件解析包含年周标记(w 或 ww)的日期字符串时,解析的周数会被默默丢弃,结果日期默认为当年的第一周。