From f9a7b4afdbeae99e0990896def3f1d5dd6c47737 Mon Sep 17 00:00:00 2001 From: niauah Date: Tue, 28 Apr 2020 16:51:21 +0800 Subject: [PATCH 1/2] Ka 6/30 23:59 kau-ki --- RimeWithWeasel/RimeWithWeasel.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/RimeWithWeasel/RimeWithWeasel.cpp b/RimeWithWeasel/RimeWithWeasel.cpp index 8aeecd793..e8c30139a 100644 --- a/RimeWithWeasel/RimeWithWeasel.cpp +++ b/RimeWithWeasel/RimeWithWeasel.cpp @@ -55,6 +55,19 @@ void RimeWithWeaselHandler::Initialize() return; } + std::time_t chitma = time(nullptr); + struct tm tm1; + tm1.tm_hour = 23; + tm1.tm_min = 59; + tm1.tm_sec = 0; + tm1.tm_year = 2020-1900; + tm1.tm_mon = 6-1; + tm1.tm_mday = 30; + std::time_t kauki = std::mktime(&tm1); + if(chitma > kauki){ + return; + } + LOG(INFO) << "Initializing la rime."; RimeInitialize(NULL); if (RimeStartMaintenance(/*full_check = */False)) From a3b74b4eab5a7bde3badf78f7ef93b28a753b139 Mon Sep 17 00:00:00 2001 From: niauah <50414882+niauah@users.noreply.github.com> Date: Mon, 22 Jun 2020 14:50:06 +0800 Subject: [PATCH 2/2] Update RimeWithWeasel.cpp --- RimeWithWeasel/RimeWithWeasel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RimeWithWeasel/RimeWithWeasel.cpp b/RimeWithWeasel/RimeWithWeasel.cpp index e8c30139a..d92d474fc 100644 --- a/RimeWithWeasel/RimeWithWeasel.cpp +++ b/RimeWithWeasel/RimeWithWeasel.cpp @@ -61,8 +61,8 @@ void RimeWithWeaselHandler::Initialize() tm1.tm_min = 59; tm1.tm_sec = 0; tm1.tm_year = 2020-1900; - tm1.tm_mon = 6-1; - tm1.tm_mday = 30; + tm1.tm_mon = 8-1; + tm1.tm_mday = 31; std::time_t kauki = std::mktime(&tm1); if(chitma > kauki){ return;