微件:Countdown:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第25行: | 第25行: | ||
if (/T\d{2}([+-]|Z|$)/.test(targetStr)) { | if (/T\d{2}([+-]|Z|$)/.test(targetStr)) { | ||
targetStr = targetStr.replace(/(T\d{2})/, "$1:00:00"); | targetStr = targetStr.replace(/(T\d{2})/, "$1:00:00"); | ||
} | |||
if (targetStr === 'today-end') { | |||
targetStr = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59).toISOString(); | |||
} | } | ||
2026年5月3日 (日) 15:32的最新版本
这是一个倒计时微件,仅供{{Countdown}}使用。