fix(lua): 修正 PM / AM 的时间展示 (#1507)

This commit is contained in:
Mi Ramon
2026-03-23 11:31:57 +08:00
committed by GitHub
parent 20b21a0ebe
commit 4e54d7edb1

View File

@@ -61,11 +61,11 @@ function M.func(input, seg, env)
yield_cand(seg, os.date('%H:%M', current_time)) yield_cand(seg, os.date('%H:%M', current_time))
yield_cand(seg, os.date('%H:%M:%S', current_time)) yield_cand(seg, os.date('%H:%M:%S', current_time))
yield_cand(seg, period_name .. " " .. os.date("%H:%M", current_time)) yield_cand(seg, period_name .. " " .. os.date("%I:%M", current_time))
yield_cand(seg, os.date("%H:%M %p", current_time)) yield_cand(seg, os.date("%I:%M %p", current_time))
-- 带上时间划分时,很少有带秒数的,暂时注释掉 -- 带上时间划分时,很少有带秒数的,暂时注释掉
-- yield_cand(seg, period_name .. " " .. os.date("%H:%M:%S", current_time)) -- yield_cand(seg, period_name .. " " .. os.date("%I:%M:%S", current_time))
-- yield_cand(seg, os.date("%H:%M:%S %p", current_time)) -- yield_cand(seg, os.date("%I:%M:%S %p", current_time))
-- 星期 -- 星期
elseif (input == M.week) then elseif (input == M.week) then