lib/zakuro/version/senmyou/stella/solar/average.rb in zakuro-0.2.0 vs lib/zakuro/version/senmyou/stella/solar/average.rb in zakuro-0.3.0
- old
+ new
@@ -85,10 +85,10 @@
solar_location.run
solar_term_index = solar_location.index
# 入定気の一つ後の二十四節気まで戻す(ただし11月経朔が二十四節気上にある場合は戻さない)
- solar_term_index += 1 unless solar_location.remainder == Cycle::Remainder.new(total: 0)
+ solar_term_index += 1 unless solar_location.remainder.day.zero?
solar_term_index
end
end
end