Skip to content

Commit

Permalink
Merge pull request #55 from Seasoning-Today/fix/#54
Browse files Browse the repository at this point in the history
절기 계산 로직 오류
  • Loading branch information
csct3434 authored Feb 5, 2024
2 parents 4772a9b + 97237ae commit 2965214
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 2965214

Please sign in to comment.