From bbf5ff3154336ddc576e8799d62cc116be4f22ef Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 21:35:52 -0700 Subject: [PATCH] Update solarconditions.py --- solarconditions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solarconditions.py b/solarconditions.py index 4da83a9..51bb7ef 100644 --- a/solarconditions.py +++ b/solarconditions.py @@ -113,7 +113,7 @@ def get_moon(lat=0, lon=0): moon_table['azimuth'] = moon.az moon_table['altitude'] = moon.alt moon_table['rise_time'] = ephem.localtime(obs.next_rising(moon)).strftime('%a %d %I:%M') - moon_table['set_time'] = ephem.localtime(obs.next_rising(moon)).strftime('%a %d %I:%M') + moon_table['set_time'] = ephem.localtime(obs.next_setting(moon)).strftime('%a %d %I:%M') moon_table['next_full_moon'] = ephem.localtime(obs.next_full_moon()).strftime('%a %d %I:%M') moon_table['next_new_moon'] = ephem.localtime(obs.next_new_moon()).strftime('%a %d %I:%M')