Skip to content

Commit e928a09

Browse files
committed
fix:修正月干支矫正错误的BUG
1 parent a93766b commit e928a09

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

box_calendar/calendar_v2.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,13 @@ bool CCalenderV2::set_datetime(const CDateTime& datetime)
111111
void CCalenderV2::check_mon_gz()
112112
{
113113
auto ck = [&](const CDateTime& datetime) {
114-
if (dt_.date_ != datetime.date_) {
115-
return;
116-
}
117114
int df = get_diff_by_time(dt_.time_, datetime.time_);
118115
if (df < 0) {
119116
sz_.mg_ = CCalenderBase::remain(10, sz_.mg_ - 1);
120117
sz_.mz_ = CCalenderBase::remain(12, sz_.mz_ - 1);
121118
}
122119
};
123120
ck(jie_.jq[2].dt_);
124-
ck(jie_.jq[3].dt_);
125121
}
126122

127123
// 获取前一天

0 commit comments

Comments
 (0)