From f3a9c39ca7daca5a8424748cca371385a6376aff Mon Sep 17 00:00:00 2001 From: Taivas Jumala Date: Tue, 25 Apr 2023 14:46:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B9=B4=E6=9C=88=E6=97=A5?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F=20(#225)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rime.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rime.lua b/rime.lua index 3c79c71..d08c081 100644 --- a/rime.lua +++ b/rime.lua @@ -21,7 +21,7 @@ function date_translator(input, seg, env) local cand = Candidate("date", seg.start, seg._end, os.date("%Y.%m.%d"), "") cand.quality = 100 yield(cand) - local cand = Candidate("date", seg.start, seg._end, os.date("%Y 年 %m 月 %d 日"), "") + local cand = Candidate("date", seg.start, seg._end, os.date("%Y 年 ")..tostring(tonumber(os.date("%m")))..os.date(" 月 %d 日"), "") cand.quality = 100 yield(cand) end