Skip to content

Commit

Permalink
fix: 절기 계산 로직 오류
Browse files Browse the repository at this point in the history
  • Loading branch information
csct3434 committed Feb 5, 2024
1 parent 4772a9b commit 97237ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected void updateSolarTerms() {
LocalDate today = LocalDate.now();

for (int i = 0; i + 1 < solarTerms.size(); i++) {
if (!solarTerms.get(i).getDate().isBefore(today)) {
if (!today.isBefore(solarTerms.get(i).getDate()) && today.isBefore(solarTerms.get(i + 1).getDate())) {
currentSolarTerm = solarTerms.get(i);
nextSolarTerm = solarTerms.get(i + 1);

Expand Down

0 comments on commit 97237ae

Please sign in to comment.